[llvm] [IR] Add elementwise modifier to atomic loads (PR #204556)
Yonah Goldberg via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 25 14:50:33 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)
----------------
YonahGoldberg wrote:
Are we forgetting to make sure it's a vector type?
https://github.com/llvm/llvm-project/pull/204556
More information about the llvm-commits
mailing list