Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Please keep in mind that "passthrough" is a terrible hack primarily intended for discovering which attributes are must model first. We should be adding proper modeling for most of them, but there are just too many. Specifically, we already have inalloca, noalias and sret that are relevant for pointers, we can easily add nocapture if this is what you actually need.
| mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp | ||
|---|---|---|
| 2343–2344 | Nit: please expand auto unless the type is obvious from line-level context. | |
| 2346 | Ultra-nit: emitOpError prints the message of the style foo.bar op <your-message>, which would doesn't read well with this message, using emitError instead will just print <your-message>. Both are still emitted at the location of the op. Alternatively, rephrase the error message to start with "expects" so the whole text is `foo.bar op expects attribute to be an array". | |
| mlir/lib/Target/LLVMIR/ModuleTranslation.cpp | ||
| 765 | ||
Nit: please expand auto unless the type is obvious from line-level context.