[clang] [llvm] [CIR] X86 vector masked load builtins (PR #169464)

via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 24 23:16:48 PST 2025


woruyu wrote:

I try to add `_mm_mask_loadu_ps`  using clangir to emit llvm-ir, but it report
```
error: call intrinsic signature <4 x float> (ptr, i32, <4 x i1>, <4 x float>) to overloaded intrinsic "llvm.masked.load" does not match any of the overloads
error: LLVM Translation failed for operation: llvm.call_intrinsic
fatal error: error in backend: Lowering from LLVMIR dialect to llvm IR failed!
```
and I find https://github.com/llvm/llvm-project/pull/163802 modify int_masked_load Intrinsic to not use mask as args, which means I need to modify cir codes to emit call intrisic(not use mask as args), Is it right? Any suggestion!

https://github.com/llvm/llvm-project/pull/169464


More information about the cfe-commits mailing list