================
@@ -8170,6 +8170,26 @@ bool
AMDGPULegalizerInfo::legalizeIntrinsic(LegalizerHelper &Helper,
B.buildStore(MI.getOperand(2), MI.getOperand(1), **MI.memoperands_begin());
MI.eraseFromParent();
return true;
+ case Intrinsic::amdgcn_flat_atomic_load_monitor_b32:
+ case Intrinsic::amdgcn_flat_atomic_load_monitor_b64:
+ case Intrinsic::amdgcn_flat_atomic_load_monitor_b128:
+ assert(MI.hasOneMemOperand() && "Expected IRTranslator to set MemOp!");
----------------
arsenm wrote:
I don't think the machine verifier enforces this, though it could. I've been
meaning to add enforcement rules for G_INTRINSIC for a very long time
https://github.com/llvm/llvm-project/pull/177343
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits