| /src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| CodeGenABITypes.cpp | 30 void CodeGen::addDefaultFunctionDefinitionAttributes(CodeGenModule &CGM, 32 CGM.addDefaultFunctionDefinitionAttributes(attrs); 36 CodeGen::arrangeObjCMessageSendSignature(CodeGenModule &CGM, 39 return CGM.getTypes().arrangeObjCMessageSendSignature(MD, receiverType); 43 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, 45 return CGM.getTypes().arrangeFreeFunctionType(Ty); 49 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, 51 return CGM.getTypes().arrangeFreeFunctionType(Ty); 55 CodeGen::arrangeCXXMethodType(CodeGenModule &CGM, 59 return CGM.getTypes().arrangeCXXMethodType(RD, FTP, MD) [all...] |
| CGOpenMPRuntimeAMDGCN.cpp | 29 CGOpenMPRuntimeAMDGCN::CGOpenMPRuntimeAMDGCN(CodeGenModule &CGM) 30 : CGOpenMPRuntimeGPU(CGM) { 31 if (!CGM.getLangOpts().OpenMPIsDevice) 45 CGF.CGM.getIntrinsic(llvm::Intrinsic::amdgcn_workitem_id_x); 51 llvm::Module *M = &CGF.CGM.getModule(); 57 llvm::GlobalVariable::ExternalLinkage, LocSize, &CGF.CGM.getModule());
|
| CGOpenMPRuntimeNVPTX.cpp | 29 CGOpenMPRuntimeNVPTX::CGOpenMPRuntimeNVPTX(CodeGenModule &CGM) 30 : CGOpenMPRuntimeGPU(CGM) { 31 if (!CGM.getLangOpts().OpenMPIsDevice) 38 &CGF.CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_warpsize), 46 &CGF.CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_tid_x); 54 &CGF.CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_ntid_x);
|
| CGVTables.cpp | 31 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) 32 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} 40 static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, 43 CGM.setFunctionLinkage(GD, ThunkFn); 44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, 48 CGM.setGVProperties(ThunkFn, GD); 50 if (!CGM.getCXXABI().exportThunk()) { 55 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker() [all...] |
| SanitizerMetadata.cpp | 23 SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : CGM(CGM) {} 35 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) 37 IsDynInit &= !CGM.isInNoSanitizeList(GV, Loc, Ty, "init"); 38 IsExcluded |= CGM.isInNoSanitizeList(GV, Loc, Ty); 42 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); 60 CGM.getModule().getOrInsertNamedMetadata("llvm.asan.globals"); 66 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) 83 if (isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize) [all...] |
| CGVTT.cpp | 21 GetAddrOfVTTVTable(CodeGenVTables &CGVT, CodeGenModule &CGM, 30 return CGM.getCXXABI().getAddrOfVTable(MostDerivedClass, CharUnits()); 44 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); 46 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); 53 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, 75 llvm::ConstantInt::get(CGM.Int32Ty, 0), 76 llvm::ConstantInt::get(CGM.Int32Ty, AddressPoint.VTableIndex), 77 llvm::ConstantInt::get(CGM.Int32Ty, AddressPoint.AddressPointIndex), 85 CGM.Int8PtrTy); 97 if (CGM.supportsCOMDAT() && VTT->isWeakForLinker() [all...] |
| ItaniumCXXABI.cpp | 61 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, 64 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), 291 CGM.setGVProperties(Thunk, GD); 332 CodeGenModule &CGM, 420 CGM.getItaniumVTableContext().getVTableLayout(RD); 431 StringRef Name = CGM.getMangledName(VtableComponent.getGlobalDecl()); 432 auto *Entry = CGM.GetGlobalValue(Name); 446 CGM.getItaniumVTableContext().getVTableLayout(RD); 466 ARMCXXABI(CodeGen::CodeGenModule &CGM) : 467 ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true [all...] |
| SwiftCallingConv.cpp | 22 static const SwiftABIInfo &getSwiftABIInfo(CodeGenModule &CGM) { 23 return cast<SwiftABIInfo>(CGM.getTargetCodeGenInfo().getABIInfo()); 55 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) { 56 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); 59 static CharUnits getTypeAllocSize(CodeGenModule &CGM, llvm::Type *type) { 60 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(type)); 74 auto arrayType = CGM.getContext().getAsConstantArrayType(type); 78 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); 86 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); 87 auto eltLLVMType = CGM.getTypes().ConvertType(eltType) [all...] |
| PatternInit.cpp | 15 llvm::Constant *clang::CodeGen::initializationPatternFor(CodeGenModule &CGM, 25 CGM.getContext().getTargetInfo().getMaxPointerWidth() < 64 46 unsigned PtrWidth = CGM.getContext().getTargetInfo().getPointerWidth( 50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); 68 initializationPatternFor(CGM, ArrTy->getElementType())); 81 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El));
|
| CGExprConstant.cpp | 43 CodeGenModule &CGM; 45 ConstantAggregateBuilderUtils(CodeGenModule &CGM) : CGM(CGM) {} 49 CGM.getDataLayout().getABITypeAlignment(C->getType())); 53 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(Ty)); 61 llvm::Type *Ty = CGM.CharTy; 68 llvm::Type *Ty = llvm::ArrayType::get(CGM.CharTy, ZeroSize.getQuantity()); 99 static llvm::Constant *buildFrom(CodeGenModule &CGM, 107 ConstantAggregateBuilder(CodeGenModule &CGM) [all...] |
| CGCUDANV.cpp | 94 auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); 119 CGBuilderTy FuncBuilder(CGM, Context); 162 CGNVCUDARuntime(CodeGenModule &CGM); 183 if (CGM.getLangOpts().HIP) 189 if (CGM.getLangOpts().HIP) 194 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) 195 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()), 196 TheModule(CGM.getModule()), 197 RelocatableDeviceCode(CGM.getLangOpts().GPURelocatableDeviceCode) [all...] |
| CGOpenCLRuntime.cpp | 37 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); 38 uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace( 39 CGM.getContext().getOpenCLTypeAddrSpace(T)); 83 CGM.getLLVMContext(), Name), 84 CGM.getContext().getTargetAddressSpace( 85 CGM.getContext().getOpenCLTypeAddrSpace(T))); 92 CGM.getLLVMContext(), "opencl.sampler_t"), 93 CGM.getContext().getTargetAddressSpace( 94 CGM.getContext().getOpenCLTypeAddrSpace(T))); 101 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()) [all...] |
| CGOpenCLRuntime.h | 37 CodeGenModule &CGM; 55 CGOpenCLRuntime(CodeGenModule &CGM) : CGM(CGM),
|
| ConstantEmitter.h | 25 CodeGenModule &CGM; 51 ConstantEmitter(CodeGenModule &CGM, CodeGenFunction *CGF = nullptr) 52 : CGM(CGM), CGF(CGF) {} 58 : CGM(CGF.CGM), CGF(&CGF) {} 116 return emitNullForMemory(CGM, T); 119 return emitForMemory(CGM, C, T); 122 static llvm::Constant *emitNullForMemory(CodeGenModule &CGM, QualType T); 123 static llvm::Constant *emitForMemory(CodeGenModule &CGM, llvm::Constant *C [all...] |
| CGCUDARuntime.h | 43 CodeGenModule &CGM; 76 CGCUDARuntime(CodeGenModule &CGM) : CGM(CGM) {} 112 CGCUDARuntime *CreateNVCUDARuntime(CodeGenModule &CGM);
|
| CGObjCRuntime.cpp | 30 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, 33 return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) / 34 CGM.getContext().getCharWidth(); 37 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, 40 return CGM.getContext().lookupFieldBitOffset(OID->getClassInterface(), OID, 42 CGM.getContext().getCharWidth(); 46 CodeGen::CodeGenModule &CGM, 49 return CGM.getContext().lookupFieldBitOffset(ID, ID->getImplementation(), 62 CGF.CGM.getContext().getObjCObjectPointerType(InterfaceTy); 65 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy) [all...] |
| MicrosoftCXXABI.cpp | 46 MicrosoftCXXABI(CodeGenModule &CGM) 47 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), 238 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(MD); 339 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) 342 MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext(); 345 llvm::UndefValue::get(CGM.IntTy)); 346 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); 355 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); 362 llvm::ArrayType *VDispMapTy = llvm::ArrayType::get(CGM.IntTy, Map.size()); 369 CGM.getModule(), VDispMapTy, /*isConstant=*/true, Linkage [all...] |
| CGBlocks.cpp | 51 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, 56 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, 58 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); 62 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, 64 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); 120 CodeGenModule &CGM); 123 CodeGenModule &CGM) { 128 if (CGM.getLangOpts().Exceptions) 130 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) 135 findBlockCapturedManagedEntities(BlockInfo, CGM.getContext().getLangOpts() [all...] |
| CGObjC.cpp | 51 CGM.getObjCRuntime().GenerateConstantString(E->getString()).getPointer(); 69 ConstantEmitter ConstEmitter(CGM); 79 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); 101 llvm::Constant *GV = CGM.GetAddrOfConstantCString(Str).getPointer(); 122 ASTContext &Context = CGM.getContext(); 131 if (NumElements == 0 && CGM.getLangOpts().ObjCRuntime.hasEmptyCollections()) { 133 QualType IdTy(CGM.getContext().getObjCIdType()); 135 CGM.CreateRuntimeVariable(ConvertType(IdTy), ConstantName); 139 CGM.getModule().getMDKindID("invariant.load"), 163 CGM.getCodeGenOpts().OptimizationLevel != 0) [all...] |
| SanitizerMetadata.h | 36 CodeGenModule &CGM; 38 SanitizerMetadata(CodeGenModule &CGM);
|
| CGOpenMPRuntimeAMDGCN.h | 28 explicit CGOpenMPRuntimeAMDGCN(CodeGenModule &CGM);
|
| CGOpenMPRuntimeNVPTX.h | 28 explicit CGOpenMPRuntimeNVPTX(CodeGenModule &CGM);
|
| CGOpenMPRuntimeGPU.cpp | 540 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); 551 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); 564 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); 586 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); 596 CodeGenModule &CGM, SourceLocation Loc) 597 : WorkerFn(nullptr), CGFI(CGM.getTypes().arrangeNullaryFunction()), 599 createWorkerFunction(CGM); 603 CodeGenModule &CGM) { 607 CGM.getTypes().GetFunctionType(CGFI), llvm::GlobalValue::InternalLinkage, 608 /*placeholder=*/"_worker", &CGM.getModule()) [all...] |
| /src/external/apache2/llvm/dist/clang/include/clang/CodeGen/ |
| CodeGenABITypes.h | 70 const CGFunctionInfo &arrangeObjCMessageSendSignature(CodeGenModule &CGM, 74 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 77 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 80 const CGFunctionInfo &arrangeCXXMethodType(CodeGenModule &CGM, 85 const CGFunctionInfo &arrangeFreeFunctionCall(CodeGenModule &CGM, 94 getImplicitCXXConstructorArgs(CodeGenModule &CGM, const CXXConstructorDecl *D); 97 getCXXDestructorImplicitParam(CodeGenModule &CGM, llvm::BasicBlock *InsertBlock, 103 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM, 106 llvm::Type *convertTypeForMemory(CodeGenModule &CGM, QualType T); 112 unsigned getLLVMFieldNumber(CodeGenModule &CGM, [all...] |
| SwiftCallingConv.h | 42 CodeGenModule &CGM; 57 SwiftAggLowering(CodeGenModule &CGM) : CGM(CGM) {} 123 bool shouldPassIndirectly(CodeGenModule &CGM, 128 CharUnits getMaximumVoluntaryIntegerSize(CodeGenModule &CGM); 131 CharUnits getNaturalAlignment(CodeGenModule &CGM, llvm::Type *type); 135 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type); 139 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 141 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize [all...] |