@@ -88,36 +88,34 @@ void fir::setTuneCPU(mlir::ModuleOp mod, llvm::StringRef cpu) {
8888 mod->setAttr (tuneCpuName, mlir::StringAttr::get (ctx, cpu));
8989}
9090
91- static constexpr const char *amdgpuIgnoreDenormalModeName =
92- " fir.amdgpu. ignore.denormal.mode" ;
93- void fir::setAmdgpuIgnoreDenormalMode (mlir::ModuleOp mod) {
91+ static constexpr const char *ignoreDenormalModeName =
92+ " fir.ignore.denormal.mode" ;
93+ void fir::setIgnoreDenormalMode (mlir::ModuleOp mod) {
9494 auto *ctx = mod.getContext ();
95- mod->setAttr (amdgpuIgnoreDenormalModeName , mlir::UnitAttr::get (ctx));
95+ mod->setAttr (ignoreDenormalModeName , mlir::UnitAttr::get (ctx));
9696}
9797
98- bool fir::getAmdgpuIgnoreDenormalMode (mlir::ModuleOp mod) {
99- return mod->hasAttrOfType <mlir::UnitAttr>(amdgpuIgnoreDenormalModeName );
98+ bool fir::getIgnoreDenormalMode (mlir::ModuleOp mod) {
99+ return mod->hasAttrOfType <mlir::UnitAttr>(ignoreDenormalModeName );
100100}
101101
102- static constexpr const char *amdgpuFineGrainedMemoryName =
103- " fir.amdgpu.fine.grained.memory" ;
104- void fir::setAmdgpuFineGrainedMemory (mlir::ModuleOp mod) {
102+ static constexpr const char *fineGrainedMemoryName = " fir.fine.grained.memory" ;
103+ void fir::setFineGrainedMemory (mlir::ModuleOp mod) {
105104 auto *ctx = mod.getContext ();
106- mod->setAttr (amdgpuFineGrainedMemoryName , mlir::UnitAttr::get (ctx));
105+ mod->setAttr (fineGrainedMemoryName , mlir::UnitAttr::get (ctx));
107106}
108107
109- bool fir::getAmdgpuFineGrainedMemory (mlir::ModuleOp mod) {
110- return mod->hasAttrOfType <mlir::UnitAttr>(amdgpuFineGrainedMemoryName );
108+ bool fir::getFineGrainedMemory (mlir::ModuleOp mod) {
109+ return mod->hasAttrOfType <mlir::UnitAttr>(fineGrainedMemoryName );
111110}
112- static constexpr const char *amdgpuRemoteMemoryName =
113- " fir.amdgpu.remote.memory" ;
114- void fir::setAmdgpuRemoteMemory (mlir::ModuleOp mod) {
111+ static constexpr const char *remoteMemoryName = " fir.remote.memory" ;
112+ void fir::setRemoteMemory (mlir::ModuleOp mod) {
115113 auto *ctx = mod.getContext ();
116- mod->setAttr (amdgpuRemoteMemoryName , mlir::UnitAttr::get (ctx));
114+ mod->setAttr (remoteMemoryName , mlir::UnitAttr::get (ctx));
117115}
118116
119- bool fir::getAmdgpuRemoteMemory (mlir::ModuleOp mod) {
120- return mod->hasAttrOfType <mlir::UnitAttr>(amdgpuRemoteMemoryName );
117+ bool fir::getRemoteMemory (mlir::ModuleOp mod) {
118+ return mod->hasAttrOfType <mlir::UnitAttr>(remoteMemoryName );
121119}
122120
123121llvm::StringRef fir::getTuneCPU (mlir::ModuleOp mod) {
0 commit comments