llvm-project
857ac4c2 - [MLIR][OpenMP] Lowering nontemporal clause to LLVM IR for SIMD directive (#118751)

Commit
236 days ago
[MLIR][OpenMP] Lowering nontemporal clause to LLVM IR for SIMD directive (#118751) This patch, - Added a new attribute `nontemporal` to fir.load and fir.store operation in the FIR dialect. - Added a pass `lower-nontemporal` which is called before FIRToLLVM conversion pass and adds the nontemporal attribute to loads and stores on the list items specified in the nontemporal clause of the SIMD directive. - Set the `UnitAttr:$nontemporal` to llvm.load and llvm.store operations during FIR to LLVM dialect conversion, if the corresponding fir.load or fir.store operations have the nontemporal attribute. - Attached the `nontemporal metadata` to load and store instructions that have the nontemporal attribute, during LLVM dialect to LLVM IR translation.
Author
Parents
Loading