Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2022-12-20 17:13:36 -08:00
95 changed files with 1919 additions and 118 deletions

View File

@@ -624,6 +624,10 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
{RelativeAddressTy, RelativeAddressTy, RelativeAddressTy,
RelativeAddressTy, Int32Ty});
RuntimeDiscoverableAttributeTy =
createStructType(*this, "swift.runtime_attr",
{Int32Ty, RelativeAddressTy, Int32Ty});
AsyncFunctionPointerTy = createStructType(*this, "swift.async_func_pointer",
{RelativeAddressTy, Int32Ty}, true);
SwiftContextTy = llvm::StructType::create(getLLVMContext(), "swift.context");
@@ -1195,6 +1199,12 @@ Address IRGenModule::getAddrOfObjCISAMask() {
return Address(ObjCISAMaskPtr, IntPtrTy, getPointerAlignment());
}
llvm::Constant *
IRGenModule::getAddrOfAccessibleFunctionRecord(SILFunction *accessibleFn) {
auto entity = LinkEntity::forAccessibleFunctionRecord(accessibleFn);
return getAddrOfLLVMVariable(entity, ConstantInit(), DebugTypeInfo());
}
ModuleDecl *IRGenModule::getSwiftModule() const {
return IRGen.SIL.getSwiftModule();
}