/external/llvm/lib/Transforms/Utils/ |
D | BuildLibCalls.cpp | 42 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrLen() 44 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrLen() 47 LLVMContext &Context = B.GetInsertBlock()->getContext(); in EmitStrLen() 49 AttributeSet::get(M->getContext(), in EmitStrLen() 71 AS[0] = AttributeSet::get(M->getContext(), 1, Attribute::NoCapture); in EmitStrNLen() 73 AS[1] = AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrNLen() 76 LLVMContext &Context = B.GetInsertBlock()->getContext(); in EmitStrNLen() 78 AttributeSet::get(M->getContext(), in EmitStrNLen() 102 AttributeSet::get(M->getContext(), AttributeSet::FunctionIndex, in EmitStrChr() 108 AttributeSet::get(M->getContext(), in EmitStrChr() [all …]
|
D | LowerInvoke.cpp | 118 Type *VoidPtrTy = Type::getInt8PtrTy(M.getContext()); in doInitialization() 126 JBLinkTy = StructType::create(M.getContext(), "llvm.sjljeh.jmpbufty"); in doInitialization() 163 AbortFn = M.getOrInsertFunction("abort", Type::getVoidTy(M.getContext()), in doInitialization() 202 ConstantInt *InvokeNoC = ConstantInt::get(Type::getInt32Ty(II->getContext()), in rewriteExpensiveInvoke() 227 new StoreInst(Constant::getNullValue(Type::getInt32Ty(II->getContext())), in rewriteExpensiveInvoke() 436 Value *Idx[] = { Constant::getNullValue(Type::getInt32Ty(F.getContext())), in insertExpensiveEHSupport() 437 ConstantInt::get(Type::getInt32Ty(F.getContext()), 1) }; in insertExpensiveEHSupport() 452 BasicBlock::Create(F.getContext(), "setjmp.catch", &F); in insertExpensiveEHSupport() 457 AllocaInst *StackPtr = new AllocaInst(Type::getInt8PtrTy(F.getContext()), 0, in insertExpensiveEHSupport() 462 AllocaInst *InvokeNum = new AllocaInst(Type::getInt32Ty(F.getContext()), 0, in insertExpensiveEHSupport() [all …]
|
D | UnifyFunctionExitNodes.cpp | 66 UnreachableBlock = BasicBlock::Create(F.getContext(), in runOnFunction() 68 new UnreachableInst(F.getContext(), UnreachableBlock); in runOnFunction() 91 BasicBlock *NewRetBlock = BasicBlock::Create(F.getContext(), in runOnFunction() 96 ReturnInst::Create(F.getContext(), NULL, NewRetBlock); in runOnFunction() 102 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in runOnFunction()
|
/external/llvm/examples/ParallelJIT/ |
D | ParallelJIT.cpp | 39 Type::getInt32Ty(M->getContext()), in createAdd1() 40 Type::getInt32Ty(M->getContext()), in createAdd1() 45 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", Add1F); in createAdd1() 48 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1); in createAdd1() 59 ReturnInst::Create(M->getContext(), Add, BB); in createAdd1() 70 Type::getInt32Ty(M->getContext()), in CreateFibFunction() 71 Type::getInt32Ty(M->getContext()), in CreateFibFunction() 75 BasicBlock *BB = BasicBlock::Create(M->getContext(), "EntryBlock", FibF); in CreateFibFunction() 78 Value *One = ConstantInt::get(Type::getInt32Ty(M->getContext()), 1); in CreateFibFunction() 79 Value *Two = ConstantInt::get(Type::getInt32Ty(M->getContext()), 2); in CreateFibFunction() [all …]
|
/external/llvm/unittests/Bitcode/ |
D | BitReaderTest.cpp | 29 FunctionType::get(Type::getVoidTy(Mod->getContext()), false); in makeLLVMModule() 33 BasicBlock* Entry = BasicBlock::Create(Mod->getContext(), "entry", Func); in makeLLVMModule() 34 new UnreachableInst(Mod->getContext(), Entry); in makeLLVMModule() 36 BasicBlock* BB = BasicBlock::Create(Mod->getContext(), "bb", Func); in makeLLVMModule() 37 new UnreachableInst(Mod->getContext(), BB); in makeLLVMModule() 39 PointerType* Int8Ptr = Type::getInt8PtrTy(Mod->getContext()); in makeLLVMModule()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMELFStreamer.cpp | 175 MCSymbol *Start = getContext().CreateTempSymbol(); in EmitMappingSymbol() 179 getContext().GetOrCreateSymbol(Name + "." + in EmitMappingSymbol() 188 const MCExpr *Value = MCSymbolRefExpr::Create(Start, getContext()); in EmitMappingSymbol() 253 EHSection = getContext().getELFSection( in SwitchToEHSection() 257 EHSection = getContext().getELFSection(EHSecName, Type, Flags, Kind); in SwitchToEHSection() 300 const MCSymbol *PersonalitySym = getContext().GetOrCreateSymbol(Name); in EmitPersonalityFixup() 305 getContext()); in EmitPersonalityFixup() 316 FnStart = getContext().CreateTempSymbol(); in EmitFnStart() 336 getContext()); in EmitFnEnd() 347 getContext()); in EmitFnEnd() [all …]
|
/external/clang/lib/CodeGen/ |
D | CGRecordLayoutBuilder.cpp | 204 Alignment = Types.getContext().getASTRecordLayout(D).getAlignment(); in Layout() 236 uint64_t TypeSizeInBits = Types.getContext().toBits(TypeSizeInBytes); in MakeInfo() 271 uint64_t NextFieldOffsetInBits = Types.getContext().toBits(NextFieldOffset); in LayoutBitfields() 277 = Types.getContext().toCharUnitsFromBits(FirstFieldOffset); in LayoutBitfields() 285 Types.getContext().toCharUnitsFromBits(FirstFieldOffset); in LayoutBitfields() 292 NextFieldOffsetInBits = Types.getContext().toBits(NextFieldOffset); in LayoutBitfields() 297 AppendPadding(Types.getContext().toCharUnitsFromBits(FirstFieldOffset), in LayoutBitfields() 307 (*FJ)->getBitWidthValue(Types.getContext()) != 0); FI = FJ++) { in LayoutBitfields() 308 NextContiguousFieldOffset += (*FJ)->getBitWidthValue(Types.getContext()); in LayoutBitfields() 324 uint64_t LastFieldSize = LastFD->getBitWidthValue(Types.getContext()); in LayoutBitfields() [all …]
|
D | CGDebugInfo.cpp | 103 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 110 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 155 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 275 SourceManager &SM = CGM.getContext().getSourceManager(); in getOrCreateFile() 309 SourceManager &SM = CGM.getContext().getSourceManager(); in getLineNumber() 323 SourceManager &SM = CGM.getContext().getSourceManager(); in getColumnNumber() 345 SourceManager &SM = CGM.getContext().getSourceManager(); in CreateCompileUnit() 439 unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy); in CreateType() 481 CGM.getContext().getTypeSize(BT), in CreateType() 482 CGM.getContext().getTypeAlign(BT), in CreateType() [all …]
|
D | CGAtomic.cpp | 56 ASTContext &C = CGF.getContext(); in AtomicInfo() 99 CharUnits size = CGF.getContext().toCharUnitsFromBits(AtomicSizeInBits); in getAtomicSizeValue() 121 CGF.getContext(), lvalue.getTBAAInfo()); in projectValue() 327 unsigned Align = CGF.getContext().getTypeAlignInChars(ValTy).getQuantity(); in AddDirectArgument() 333 CGF.getContext().VoidPtrTy); in AddDirectArgument() 342 CharUnits sizeChars = getContext().getTypeSizeInChars(AtomicTy); in EmitAtomicExpr() 344 CharUnits alignChars = getContext().getTypeAlignInChars(AtomicTy); in EmitAtomicExpr() 349 getContext().toBits(sizeChars) > MaxInlineWidthInBits); in EmitAtomicExpr() 356 LValue lvalue = LValue::MakeAddr(Ptr, AtomicTy, alignChars, getContext()); in EmitAtomicExpr() 409 getContext().getTypeSizeInChars(MemTy->getPointeeType()); in EmitAtomicExpr() [all …]
|
D | CGObjC.cpp | 91 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 240 CGF.getContext().hasSameType(ExpT, Method->getResultType()) || in AdjustRelatedResultType() 451 CGF.getContext().VoidTy, in Emit() 516 ASTContext &Context = CGF.getContext(); in emitStructGetterCall() 532 CharUnits size = CGF.getContext().getTypeSizeInChars(ivar->getType()); in emitStructGetterCall() 625 = CGM.getContext().getTypeInfoInChars(ivarType); in PropertyImplStrategy() 688 CGM.getContext().getObjCGCAttrKind(ivarType))) { in PropertyImplStrategy() 790 args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 797 args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() 800 args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy); in emitCPPObjectAtomicGetterCall() [all …]
|
D | TargetInfo.cpp | 78 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo 79 return CGT.getContext(); in getContext() 674 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType() 712 if (X86_32ABIInfo::shouldReturnTypeInRegister(RetTy, getContext(), in classifyReturnType() 714 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType() 721 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType() 787 if (Align >= 16 && (isSSEVectorType(getContext(), Ty) || in getTypeStackAlignInBytes() 788 isRecordWithSSEVectorType(getContext(), Ty))) in getTypeStackAlignInBytes() 805 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult() 820 const Type *T = isSingleElementStruct(Ty, getContext()); in classify() [all …]
|
D | CGClass.cpp | 64 ComputeNonVirtualBaseClassOffset(getContext(), ClassDecl, in GetNonVirtualBaseClassOffset() 70 Types.ConvertType(getContext().getPointerDiffType()); in GetNonVirtualBaseClassOffset() 92 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(Derived); in GetAddressOfDirectBaseInCompleteClass() 160 ComputeNonVirtualBaseClassOffset(getContext(), VBase ? VBase : Derived, in GetAddressOfBaseClass() 167 const ASTRecordLayout &layout = getContext().getASTRecordLayout(Derived); in GetAddressOfBaseClass() 237 getContext().getCanonicalType(getContext().getTagDeclType(Derived)); in GetAddressOfDerivedClass() 312 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in GetVTTParameter() 403 if (BaseInitializerUsesThis(CGF.getContext(), BaseInit->getInit())) in EmitBaseInitializer() 412 CharUnits Alignment = CGF.getContext().getTypeAlignInChars(BaseType); in EmitBaseInitializer() 449 CharUnits Align = CGF.getContext().getTypeAlignInChars(T); in EmitAggMemberInitializer() [all …]
|
/external/skia/src/gpu/ |
D | GrResource.cpp | 47 const GrContext* GrResource::getContext() const { in getContext() function in GrResource 49 return fGpu->getContext(); in getContext() 55 GrContext* GrResource::getContext() { in getContext() function in GrResource 57 return fGpu->getContext(); in getContext()
|
/external/chromium_org/third_party/skia/src/gpu/ |
D | GrResource.cpp | 47 const GrContext* GrResource::getContext() const { in getContext() function in GrResource 49 return fGpu->getContext(); in getContext() 55 GrContext* GrResource::getContext() { in getContext() function in GrResource 57 return fGpu->getContext(); in getContext()
|
/external/llvm/lib/CodeGen/ |
D | TargetLoweringObjectFileImpl.cpp | 57 return getContext().GetOrCreateSymbol(StringRef("DW.ref.") + in getCFIPersonalitySymbol() 68 MCSymbol *Label = getContext().GetOrCreateSymbol(NameData); in emitPersonalityValue() 74 const MCSection *Sec = getContext().getELFSection(NameData, in emitPersonalityValue() 83 const MCExpr *E = MCConstantExpr::Create(Size, getContext()); in emitPersonalityValue() 104 MCSymbol *SSym = getContext().GetOrCreateSymbol(Name.str()); in getTTypeGlobalReference() 112 getTTypeReference(MCSymbolRefExpr::Create(SSym, getContext()), in getTTypeGlobalReference() 211 return getContext().getELFSection(SectionName, in getExplicitSectionGlobal() 264 return getContext().getELFSection(Name.str(), in SelectSectionForGlobal() 291 return getContext().getELFSection(Name, ELF::SHT_PROGBITS, in SelectSectionForGlobal() 355 return getContext().getELFSection(Name, ELF::SHT_INIT_ARRAY, in getStaticCtorSection() [all …]
|
/external/llvm/lib/MC/ |
D | MCDwarf.cpp | 66 if (!MCOS->getContext().getDwarfLocSeen()) in Make() 70 MCSymbol *LineSym = MCOS->getContext().CreateTempSymbol(); in Make() 75 const MCDwarfLoc &DwarfLoc = MCOS->getContext().getCurrentDwarfLoc(); in Make() 81 MCOS->getContext().ClearDwarfLocSeen(); in Make() 86 MCOS->getContext().getMCLineSections(); in Make() 94 MCOS->getContext().addMCLineSection(Section, LineSection); in Make() 99 MCOS->getContext().getDwarfCompileUnitID()); in Make() 111 MCSymbolRefExpr::Create(&End, Variant, MCOS.getContext()); in MakeStartMinusEndExpr() 113 MCSymbolRefExpr::Create(&Start, Variant, MCOS.getContext()); in MakeStartMinusEndExpr() 115 MCBinaryExpr::Create(MCBinaryExpr::Sub, Res, RHS, MCOS.getContext()); in MakeStartMinusEndExpr() [all …]
|
D | MCStreamer.cpp | 131 EmitValueImpl(MCSymbolRefExpr::Create(Sym, getContext()), Size); in EmitSymbolValue() 145 const MCExpr *E = MCConstantExpr::Create(FillValue, getContext()); in EmitFill() 158 return getContext().GetDwarfFile(Directory, Filename, FileNo, CUID) == 0; in EmitDwarfFileDirective() 166 getContext().setCurrentDwarfLoc(FileNo, Line, Column, Flags, Isa, in EmitDwarfLocDirective() 230 StringRef Prefix = getContext().getAsmInfo()->getPrivateGlobalPrefix(); in RecordProcStart() 234 Frame.Begin = getContext().CreateTempSymbol(); in RecordProcStart() 249 Frame.End = getContext().CreateTempSymbol(); in RecordProcEnd() 255 MCSymbol *Label = getContext().CreateTempSymbol(); in EmitCFICommon() 399 Frame->Begin = getContext().CreateTempSymbol(); in EmitWin64EHStartProc() 410 CurFrame->End = getContext().CreateTempSymbol(); in EmitWin64EHEndProc() [all …]
|
/external/llvm/examples/BrainF/ |
D | BrainFDriver.cpp | 60 getOrInsertFunction("main", IntegerType::getInt32Ty(mod->getContext()), in addMainFunction() 61 IntegerType::getInt32Ty(mod->getContext()), in addMainFunction() 63 IntegerType::getInt8Ty(mod->getContext()))), NULL)); in addMainFunction() 73 BasicBlock *bb = BasicBlock::Create(mod->getContext(), "main.0", main_func); in addMainFunction() 83 ReturnInst::Create(mod->getContext(), in addMainFunction() 84 ConstantInt::get(mod->getContext(), APInt(32, 0)), bb); in addMainFunction()
|
/external/llvm/lib/IR/ |
D | Metadata.cpp | 134 LLVMContextImpl *pImpl = getType()->getContext().pImpl; in ~MDNode() 292 assert(!N->getContext().pImpl->MDNodeSet.RemoveNode(N) && in deleteTemporary() 294 assert(!N->getContext().pImpl->NonUniquedMDNodes.erase(N) && in deleteTemporary() 321 LLVMContextImpl *pImpl = getType()->getContext().pImpl; in setIsNotUniqued() 357 LLVMContextImpl *pImpl = getType()->getContext().pImpl; in replaceOperand() 516 return MDNode::get(A->getContext(), EndPoints); in getMostGenericRange() 577 setMetadata(getContext().getMDKindID(Kind), Node); in setMetadata() 581 return getMetadataImpl(getContext().getMDKindID(Kind)); in getMetadataImpl() 598 LLVMContextImpl::MDMapTy &Info = getContext().pImpl->MetadataStore[this]; in setMetadata() 619 getContext().pImpl->MetadataStore.count(this)) && in setMetadata() [all …]
|
D | Constants.cpp | 116 return ConstantFP::get(Ty->getContext(), in getNullValue() 119 return ConstantFP::get(Ty->getContext(), in getNullValue() 122 return ConstantFP::get(Ty->getContext(), in getNullValue() 125 return ConstantFP::get(Ty->getContext(), in getNullValue() 128 return ConstantFP::get(Ty->getContext(), in getNullValue() 131 return ConstantFP::get(Ty->getContext(), in getNullValue() 150 Constant *C = ConstantInt::get(Ty->getContext(), V); in getIntegerValue() 165 return ConstantInt::get(Ty->getContext(), in getAllOnesValue() 171 return ConstantFP::get(Ty->getContext(), FL); in getAllOnesValue() 456 return ConstantInt::getTrue(Ty->getContext()); in getTrue() [all …]
|
D | ConstantFold.cpp | 59 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector() 93 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair() 113 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast() 171 return ConstantFP::get(DestTy->getContext(), in FoldBitCast() 181 return ConstantInt::get(FP->getContext(), in FoldBitCast() 213 return ConstantInt::get(CI->getContext(), V); in ExtractConstantBytes() 264 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 286 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 302 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 322 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes() [all …]
|
/external/llvm/lib/Target/X86/ |
D | X86TargetObjectFile.cpp | 30 MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getTTypeGlobalReference() 31 const MCExpr *Four = MCConstantExpr::Create(4, getContext()); in getTTypeGlobalReference() 32 return MCBinaryExpr::CreateAdd(Res, Four, getContext()); in getTTypeGlobalReference() 54 return MCSymbolRefExpr::Create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext()); in getDebugThreadLocalSymbol()
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypesGeneric.cpp | 41 EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); in ExpandRes_BITCAST() 80 EVT InNVT = EVT::getVectorVT(*DAG.getContext(), InVT.getVectorElementType(), in ExpandRes_BITCAST() 100 EVT NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() 109 ElemVT = EVT::getIntegerVT(*DAG.getContext(), NewSizeInBits); in ExpandRes_BITCAST() 110 NVT = EVT::getVectorVT(*DAG.getContext(), ElemVT, NumElems); in ExpandRes_BITCAST() 135 *DAG.getContext(), in ExpandRes_BITCAST() 156 getTypeForEVT(*DAG.getContext())); in ExpandRes_BITCAST() 213 EVT NewVT = TLI.getTypeToTransformTo(*DAG.getContext(), OldVT); in ExpandRes_EXTRACT_VECTOR_ELT() 220 EVT NVecVT = EVT::getVectorVT(*DAG.getContext(), OldVT, OldElts); in ExpandRes_EXTRACT_VECTOR_ELT() 225 EVT::getVectorVT(*DAG.getContext(), in ExpandRes_EXTRACT_VECTOR_ELT() [all …]
|
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
D | AnalysisManager.h | 111 return AnaCtxMgr.getContext(D)->getCFG(); in getCFG() 116 return AnaCtxMgr.getContext(D)->getAnalysis<T>(); in getAnalysis() 120 return AnaCtxMgr.getContext(D)->getParentMap(); in getParentMap() 124 return AnaCtxMgr.getContext(D); in getAnalysisDeclContext()
|
/external/llvm/lib/MC/MCParser/ |
D | DarwinAsmParser.cpp | 370 getStreamer().SwitchSection(getContext().getMachOSection( in ParseSectionSwitch() 397 MCSymbol *Sym = getContext().GetOrCreateSymbol(Name); in ParseDirectiveDesc() 476 MCSymbol *Sym = getContext().GetOrCreateSymbol(Name); in ParseDirectiveLsym() 538 getStreamer().SwitchSection(getContext().getMachOSection( in ParseDirectiveSection() 583 if (getContext().getSecureLogUsed() != false) in ParseDirectiveSecureLogUnique() 587 const char *SecureLogFile = getContext().getSecureLogFile(); in ParseDirectiveSecureLogUnique() 593 raw_ostream *OS = getContext().getSecureLog(); in ParseDirectiveSecureLogUnique() 602 getContext().setSecureLog(OS); in ParseDirectiveSecureLogUnique() 611 getContext().setSecureLogUsed(true); in ParseDirectiveSecureLogUnique() 624 getContext().setSecureLogUsed(false); in ParseDirectiveSecureLogReset() [all …]
|