Searched refs:ThunkFn (Results 1 – 6 of 6) sorted by relevance
/external/llvm-project/clang/lib/CodeGen/ |
D | CGVTables.cpp | 41 llvm::Function *ThunkFn, bool ForVTable, in setThunkProperties() argument 43 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties() 44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties() 48 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties() 51 ThunkFn->setDLLStorageClass(llvm::GlobalValue::DefaultStorageClass); in setThunkProperties() 52 ThunkFn->setDSOLocal(true); in setThunkProperties() 55 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties() 56 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties() 524 llvm::Function *ThunkFn = cast<llvm::Function>(Thunk->stripPointerCasts()); in maybeEmitThunk() local 525 if (ThunkFn->getFunctionType() != ThunkFnTy) { in maybeEmitThunk() [all …]
|
D | MicrosoftCXXABI.cpp | 2032 llvm::Function *ThunkFn = in EmitVirtualMemPtrThunk() local 2035 assert(ThunkFn->getName() == ThunkName && "name was uniqued!"); in EmitVirtualMemPtrThunk() 2037 ThunkFn->setLinkage(MD->isExternallyVisible() in EmitVirtualMemPtrThunk() 2041 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in EmitVirtualMemPtrThunk() 2043 CGM.SetLLVMFunctionAttributes(MD, FnInfo, ThunkFn); in EmitVirtualMemPtrThunk() 2044 CGM.SetLLVMFunctionAttributesForDefinition(MD, ThunkFn); in EmitVirtualMemPtrThunk() 2050 ThunkFn->addFnAttr("thunk"); in EmitVirtualMemPtrThunk() 2053 ThunkFn->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::None); in EmitVirtualMemPtrThunk() 2066 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in EmitVirtualMemPtrThunk() 2082 return ThunkFn; in EmitVirtualMemPtrThunk() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGVTables.cpp | 59 llvm::Function *ThunkFn, bool ForVTable, in setThunkProperties() argument 61 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties() 62 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties() 67 setThunkVisibility(CGM, MD, Thunk, ThunkFn); in setThunkProperties() 69 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties() 70 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties() 451 llvm::Function *ThunkFn = cast<llvm::Function>(Entry); in emitThunk() local 455 if (!ThunkFn->isDeclaration()) { in emitThunk() 461 setThunkProperties(CGM, Thunk, ThunkFn, ForVTable, GD); in emitThunk() 465 CGM.SetLLVMFunctionAttributesForDefinition(GD.getDecl(), ThunkFn); in emitThunk() [all …]
|
D | MicrosoftCXXABI.cpp | 1903 llvm::Function *ThunkFn = in EmitVirtualMemPtrThunk() local 1906 assert(ThunkFn->getName() == ThunkName && "name was uniqued!"); in EmitVirtualMemPtrThunk() 1908 ThunkFn->setLinkage(MD->isExternallyVisible() in EmitVirtualMemPtrThunk() 1912 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in EmitVirtualMemPtrThunk() 1914 CGM.SetLLVMFunctionAttributes(MD, FnInfo, ThunkFn); in EmitVirtualMemPtrThunk() 1915 CGM.SetLLVMFunctionAttributesForDefinition(MD, ThunkFn); in EmitVirtualMemPtrThunk() 1921 ThunkFn->addFnAttr("thunk"); in EmitVirtualMemPtrThunk() 1924 ThunkFn->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::None); in EmitVirtualMemPtrThunk() 1937 CGF.StartFunction(GlobalDecl(), FnInfo.getReturnType(), ThunkFn, FnInfo, in EmitVirtualMemPtrThunk() 1953 return ThunkFn; in EmitVirtualMemPtrThunk() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | HWAddressSanitizer.cpp | 1452 auto *ThunkFn = Function::Create(ThunkFnTy, in instrumentPersonalityFunctions() local 1457 ThunkFn->setVisibility(GlobalValue::HiddenVisibility); in instrumentPersonalityFunctions() 1458 ThunkFn->setComdat(M.getOrInsertComdat(ThunkName)); in instrumentPersonalityFunctions() 1461 auto *BB = BasicBlock::Create(*C, "entry", ThunkFn); in instrumentPersonalityFunctions() 1465 {ThunkFn->getArg(0), ThunkFn->getArg(1), ThunkFn->getArg(2), in instrumentPersonalityFunctions() 1466 ThunkFn->getArg(3), ThunkFn->getArg(4), in instrumentPersonalityFunctions() 1475 F->setPersonalityFn(ThunkFn); in instrumentPersonalityFunctions()
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | HWAddressSanitizer.cpp | 1484 auto *ThunkFn = Function::Create(ThunkFnTy, in instrumentPersonalityFunctions() local 1489 ThunkFn->setVisibility(GlobalValue::HiddenVisibility); in instrumentPersonalityFunctions() 1490 ThunkFn->setComdat(M.getOrInsertComdat(ThunkName)); in instrumentPersonalityFunctions() 1493 auto *BB = BasicBlock::Create(*C, "entry", ThunkFn); in instrumentPersonalityFunctions() 1497 {ThunkFn->getArg(0), ThunkFn->getArg(1), ThunkFn->getArg(2), in instrumentPersonalityFunctions() 1498 ThunkFn->getArg(3), ThunkFn->getArg(4), in instrumentPersonalityFunctions() 1507 F->setPersonalityFn(ThunkFn); in instrumentPersonalityFunctions()
|