[flang-commits] [flang] [flang][nfc] Support volatility in Fir ops (PR #134858)

via flang-commits flang-commits at lists.llvm.org
Tue Apr 22 08:12:18 PDT 2025


================
@@ -2752,6 +2755,22 @@ def fir_AddrOfOp : fir_OneResultOp<"address_of", [NoMemoryEffect]> {
   let assemblyFormat = "`(` $symbol `)` attr-dict `:` type($resTy)";
 }
 
+def fir_VolatileCastOp : fir_SimpleOneResultOp<"volatile_cast", [NoMemoryEffect]> {
----------------
jeanPerier wrote:

I think this could even be `Pure` since this is a "no-op" at runtime and can be safely hoisted from if/then/else and do loop regions.

https://github.com/llvm/llvm-project/pull/134858


More information about the flang-commits mailing list