diff --git a/clang/include/clang/Basic/BuiltinsAssigner.def b/clang/include/clang/Basic/BuiltinsAssigner.def index b6a2c11d9d49..4a0303f8a003 100644 --- a/clang/include/clang/Basic/BuiltinsAssigner.def +++ b/clang/include/clang/Basic/BuiltinsAssigner.def @@ -39,7 +39,7 @@ // numbers: https://github.com/NilFoundation/zkllvm-circifier/blob/master/clang/lib/AST/ASTContext.cpp#L11086-L11118 BUILTIN(__builtin_assigner_malloc, "v*z", "n") BUILTIN(__builtin_assigner_free, "vv*", "n") -BUILTIN(__builtin_assigner_poseidon_pallas_base, "E3g1E3g1", "n") +BUILTIN(__builtin_assigner_poseidon_pallas_base, "g1g1g1", "n") BUILTIN(__builtin_assigner_sha2_256_pallas_base, "E2g1E2g1E2g1", "n") BUILTIN(__builtin_assigner_sha2_256_bls12381_base, "g3g3", "n") BUILTIN(__builtin_assigner_sha2_512_curve25519, "g6e4e4E4g1", "n") diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 9212ab5b8458..b06d8f021aa0 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -20570,7 +20570,7 @@ Value *CodeGenFunction::EmitAssignerBuiltinExpr(unsigned int BuiltinID, ID = Intrinsic::assigner_poseidon; auto ElemTy = llvm::GaloisFieldType::get(context, llvm::GALOIS_FIELD_PALLAS_BASE); - OverloadTypes = {llvm::FixedVectorType::get(ElemTy, 3)}; + OverloadTypes = {ElemTy}; break; } case assigner::BI__builtin_assigner_sha2_256_pallas_base: { diff --git a/llvm/include/llvm/IR/IntrinsicsAssigner.td b/llvm/include/llvm/IR/IntrinsicsAssigner.td index 24305a28d5b1..20100a1df28b 100644 --- a/llvm/include/llvm/IR/IntrinsicsAssigner.td +++ b/llvm/include/llvm/IR/IntrinsicsAssigner.td @@ -12,7 +12,7 @@ def int_assigner_malloc: Intrinsic<[llvm_ptr_ty], [llvm_i64_ty]>; def int_assigner_free: Intrinsic<[], [llvm_ptr_ty]>; -def int_assigner_poseidon: Intrinsic<[llvm_anyvector_ty], [LLVMMatchType<0>]>; +def int_assigner_poseidon: Intrinsic<[llvm_any_ty], [LLVMMatchType<0>, LLVMMatchType<0>]>; def int_assigner_sha2_256: Intrinsic<[llvm_anyvector_ty], [LLVMMatchType<0>, LLVMMatchType<0>]>; def int_assigner_sha2_256_bls12381: Intrinsic<[llvm_any_ty], [LLVMMatchType<0>]>; def int_assigner_sha2_512: Intrinsic<[llvm_any_ty], [llvm_any_ty, LLVMMatchType<1>, llvm_anyvector_ty]>;