The attribute is translated into LLVM's function attribute 'readonly'. The attribute can be only used for pointers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D139641
[mlir] Support llvm.readonly attribute on llvm pointers ClosedPublic Authored by guraypp on Dec 8 2022, 8:53 AM.
Details Summary The attribute is translated into LLVM's function attribute 'readonly'. The attribute can be only used for pointers.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Dec 9 2022, 12:53 AM Closed by commit rG359c064da762: [mlir] Support llvm.readonly attribute on llvm pointers (authored by guraypp). · Explain WhyDec 9 2022, 1:37 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 481562 mlir/include/mlir/Dialect/LLVMIR/LLVMOpBase.td
mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
mlir/test/Target/LLVMIR/llvmir-invalid.mlir
mlir/test/Target/LLVMIR/llvmir.mlir
|