[llvm] [IR] Add elementwise modifier to atomic loads (PR #204556)
Harrison Hao via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 02:03:27 PDT 2026
================
@@ -8961,8 +8967,13 @@ int LLParser::parseLoad(Instruction *&Inst, PerFunctionState &PFS) {
if (!Val->getType()->isPointerTy() || !Ty->isFirstClassType())
return error(Loc, "load operand must be a pointer to a first class type");
+
+ if (IsElementwise && !isAtomic)
----------------
harrisonGPU wrote:
Thanks, I have updated it.
https://github.com/llvm/llvm-project/pull/204556
More information about the llvm-commits
mailing list