[LLVMIR] Use helper methods to set/check readnone attribute (NFC)
authorNikita Popov <npopov@redhat.com>
Fri, 21 Oct 2022 14:22:26 +0000 (16:22 +0200)
committerNikita Popov <npopov@redhat.com>
Fri, 21 Oct 2022 14:23:52 +0000 (16:23 +0200)
commit87549e61dae5c1cbb8ef590058aa93053ded481d
tree6fa0a0cfc80b08b11bdfcfa8ed6cf8cbae8b1c5d
parentec4db1d0dc68c614af2231dbaf4c058fc03bdab0
[LLVMIR] Use helper methods to set/check readnone attribute (NFC)

This makes the code forward-compatible to the memory attribute.
mlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
mlir/lib/Target/LLVMIR/ModuleTranslation.cpp