Skip to content

Commit

Permalink
Fix type-mangling for vst on arm32 for LLVM15 (halide#6705)
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson authored and ardier committed Mar 3, 2024
1 parent 966098f commit 42cdc85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CodeGen_ARM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1000,9 +1000,10 @@ void CodeGen_ARM::visit(const Store *op) {
std::ostringstream instr;
vector<llvm::Type *> arg_types;
if (target.bits == 32) {
const char *type_annotation = (LLVM_VERSION < 150) ? ".p0i8" : ".p0";
instr << "llvm.arm.neon.vst"
<< num_vecs
<< ".p0i8"
<< type_annotation
<< ".v"
<< intrin_type.lanes()
<< (t.is_float() ? 'f' : 'i')
Expand Down

0 comments on commit 42cdc85

Please sign in to comment.