Add a section attribute to LLVM_GlobalOp, during module translation attribute value is propagated to llvm
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp | ||
|---|---|---|
| 493 | Drop the trivial braces here and throughout the commit. | |
| mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | ||
|---|---|---|
| 1003 | With this builder by the way? This seems to handle only a subset of the members exposed by this op. | |
| mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | ||
|---|---|---|
| 1003 | We also don't need builders for all combinations of infrequent attributes. Something like auto op = builder.create<...>(...) followed by op.sectionAttr(value-to-set) works just fine. | |
| mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | ||
|---|---|---|
| 1003 | Should I remove this builder or is this good to land? | |
| mlir/include/mlir/Dialect/LLVMIR/LLVMOps.td | ||
|---|---|---|
| 1003 | If nobody is using it, let's remove and avoid having dead code in the codebase. | |
Looks like it's it ready to land? I'll merge it tomorrow if there are no more comments.
It's been widely approved I think, usually if the author does not have commit access they leave a note for us to land it for them.
I don't have commit access. Please commit this patch
Name : Ranjith Kumar H
Email : ranjithkh1@gmail.com
With this builder by the way? This seems to handle only a subset of the members exposed by this op.