[llvm] [RFC] IR: Support atomicrmw FP ops with vector types (PR #86796)
James Y Knight via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 07:42:24 PDT 2024
================
@@ -8222,7 +8222,7 @@ int LLParser::parseAtomicRMW(Instruction *&Inst, PerFunctionState &PFS) {
" operand must be an integer, floating point, or pointer type");
}
} else if (IsFP) {
- if (!Val->getType()->isFloatingPointTy()) {
+ if (!Val->getType()->isFPOrFPVectorTy()) {
----------------
jyknight wrote:
What happens if you pass a scalable vector type? Should we prohibit that?
https://github.com/llvm/llvm-project/pull/86796
More information about the llvm-commits
mailing list