[llvm] STACK: GlobalISel: indexed load/stores support for AArch64 (PR #69533)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 25 04:16:18 PDT 2023
================
@@ -945,42 +945,171 @@ void CombinerHelper::applySextInRegOfLoad(
MI.eraseFromParent();
}
+static Type *getTypeForLLT(LLT Ty, LLVMContext &C) {
+ if (Ty.isVector())
+ return FixedVectorType::get(IntegerType::get(C, Ty.getScalarSizeInBits()),
+ Ty.getNumElements());
+ return IntegerType::get(C, Ty.getSizeInBits());
+}
----------------
arsenm wrote:
I could swear we have this somewhere already
https://github.com/llvm/llvm-project/pull/69533
More information about the llvm-commits
mailing list