mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-12 02:47:10 +00:00
c0f4408d76
Summary: 1-bit integer is tricky in different dialects sometimes. E.g., there is no arithmetic instructions on 1-bit integer in SPIR-V, i.e., `spv.IMul %0, %1 : i1` is not valid. Instead, `spv.LogicalAnd %0, %1 : i1` is valid. Creating the op directly makes lowering easier because we don't need to match a complicated pattern like `!(!lhs && !rhs)`. Also, this matches the semantic better. Also add assertions on inputs. Differential Revision: https://reviews.llvm.org/D75764
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.