Now that LLVM dialect types are implemented directly in the dialect, we can use
MLIR hooks for verifying type construction invariants. Implement the verifiers
and use them in the parser.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h | ||
---|---|---|
357 | nit: Add a variable name for the bool parameter. | |
415 | nit: Missing a variable name here. | |
mlir/lib/Dialect/LLVMIR/IR/LLVMTypeSyntax.cpp | ||
300 | nit: Can you just use an if here instead? if (isScalable) ... ... | |
335 | nit: Add braces here, the body is non-trivial. | |
mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp | ||
226 | nit: Use one isa here: !type.isa<LLVMVoidType, LLVMLabelType, ...>() | |
259 | Same here and below. | |
328 | Can you use a constexpr for this magic number? | |
432 | nit: Can you include the fact that this is an LLVM structure? |
nit: Add a variable name for the bool parameter.