[llvm] RuntimeLibcalls: Add function signatures to RTLIB. (PR #226264)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 24 12:07:25 PDT 2026


================
@@ -154,6 +155,46 @@ static IntegerType *getSizeTType(LLVMContext &Ctx, const DataLayout &DL) {
   return DL.getIndexType(Ctx, /*AddressSpace=*/0);
 }
 
+static Type *convertToIRType(FuncArgTypeID ID, LLVMContext &Ctx,
+                             const Triple &TT, const DataLayout &DL) {
+
+  unsigned IntBits = TT.isArch16Bit() ? 16 : 32;
----------------
arsenm wrote:

Can you add the RuntimeLibcallsInfo mirror of TargetLibraryInfo::getIntSize instead of hardcoding it in here? Arguably we could move this into the triple 

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


More information about the llvm-commits mailing list