[llvm] [LLVM][IR] Add native vector support to ConstantInt & ConstantFP. (PR #74502)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 13 08:59:10 PST 2024
================
@@ -885,6 +901,26 @@ ConstantInt *ConstantInt::get(LLVMContext &Context, const APInt &V) {
return Slot.get();
}
+// Get a ConstantInt vector with each lane set to the same APInt.
+ConstantInt *ConstantInt::get(LLVMContext &Context, ElementCount EC,
+ const APInt &V) {
----------------
paulwalker-arm wrote:
I've made them private but had to add VectorConstant to the friends list so that it can use them.
https://github.com/llvm/llvm-project/pull/74502
More information about the llvm-commits
mailing list