Home
last modified time | relevance | path

Searched refs:getContext (Results 1 – 25 of 935) sorted by relevance

12345678910>>...38

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DABIInfo.cpp20 ASTContext &ABIInfo::getContext() const { return CGT.getContext(); } in getContext() function in ABIInfo
58 return getContext().getLangOpts().CPlusPlus; in isZeroLengthBitfieldPermittedInHomogeneousAggregate()
105 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
109 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
124 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
125 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
149 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
150 Base = getContext() in isHomogeneousAggregate()
157 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
164 if (getContext().isPromotableIntegerType(Ty)) in isPromotableIntegerTypeForABI()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp33 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel()
34 const MCExpr *Off = MCConstantExpr::create(FinalOffset, getContext()); in getIndirectSymViaGOTPCRel()
35 return MCBinaryExpr::createAdd(Res, Off, getContext()); in getIndirectSymViaGOTPCRel()
52 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, getContext()); in getTTypeGlobalReference()
53 MCSymbol *PCSym = getContext().createTempSymbol(); in getTTypeGlobalReference()
55 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getTTypeGlobalReference()
56 return MCBinaryExpr::createSub(Res, PC, getContext()); in getTTypeGlobalReference()
77 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOT, getContext()); in getIndirectSymViaGOTPCRel()
78 MCSymbol *PCSym = getContext().createTempSymbol(); in getIndirectSymViaGOTPCRel()
80 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getIndirectSymViaGOTPCRel()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp27 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getTTypeGlobalReference()
28 const MCExpr *Four = MCConstantExpr::create(4, getContext()); in getTTypeGlobalReference()
29 return MCBinaryExpr::createAdd(Res, Four, getContext()); in getTTypeGlobalReference()
50 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel()
51 const MCExpr *Off = MCConstantExpr::create(FinalOff, getContext()); in getIndirectSymViaGOTPCRel()
52 return MCBinaryExpr::createAdd(Res, Off, getContext()); in getIndirectSymViaGOTPCRel()
57 return MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_DTPOFF, getContext()); in getDebugThreadLocalSymbol()
65 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel()
66 const MCExpr *Off = MCConstantExpr::create(FinalOffset, getContext()); in getIndirectSymViaGOTPCRel()
67 return MCBinaryExpr::createAdd(Res, Off, getContext()); in getIndirectSymViaGOTPCRel()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCWinCOFFStreamer.cpp72 switchSection(getContext().getObjectFileInfo()->getTextSection()); in initSections()
75 switchSection(getContext().getObjectFileInfo()->getDataSection()); in initSections()
78 switchSection(getContext().getObjectFileInfo()->getBSSSection()); in initSections()
81 switchSection(getContext().getObjectFileInfo()->getTextSection()); in initSections()
188 if (getContext().getTargetTriple().getArch() != Triple::x86) in emitCOFFSafeSEH()
238 MCE, MCConstantExpr::create(Offset, getContext()), getContext()); in emitCOFFSecRel32()
253 Symbol, MCSymbolRefExpr::VK_COFF_IMGREL32, getContext()); in emitCOFFImgRel32()
257 MCE, MCConstantExpr::create(Offset, getContext()), getContext()); in emitCOFFImgRel32()
270 const Triple &T = getContext().getTargetTriple(); in emitCommonSymbol()
319 Symbol, MCSymbolRefExpr::VK_WEAKREF, getContext())); in emitWeakReference()
[all …]
H A DMCStreamer.cpp330 getContext().reportError( in checkCVLocSection()
339 getContext().reportError( in checkCVLocSection()
451 return getContext().reportError( in emitCFIStartProc()
705 getContext().reportError( in EnsureValidWinFrameInfo()
710 getContext().reportError( in EnsureValidWinFrameInfo()
720 return getContext().reportError( in emitWinCFIStartProc()
723 getContext().reportError( in emitWinCFIStartProc()
782 return getContext().reportError( in emitWinCFIEndChained()
797 return getContext().reportError( in emitWinEHHandler()
890 return getContext().reportError( in emitWinCFISetFrame()
[all …]
H A DMCObjectStreamer.cpp260 getContext().reportError( in emitValueImpl()
281 Frame.Begin = getContext().createTempSymbol(); in emitCFIStartProcImpl()
286 Frame.End = getContext().createTempSymbol(); in emitCFIEndProcImpl()
375 getContext().clearDwarfLocSeen(); in changeSectionImpl()
382 getContext().reportError(Subsection->getLoc(), in changeSectionImpl()
519 MCContext &Context = OS.getContext(); in buildSymbolDiff()
565 MCContext &Ctx = getContext(); in emitDwarfLineEndEntry()
591 getContext().getCVContext().recordCVLoc(getContext(), LineSym, FunctionId, in emitCVLocDirective()
804 MCSymbolRefExpr::create(getContext().createTempSymbol(), getContext()); in emitRelocDirective()
917 getContext().RemapDebugPaths(); in finishImpl()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DLoongArch.cpp75 getContext().getTypeSize(RetTy) > (2 * GRLen)) { in computeInfo()
110 uint64_t Size = getContext().getTypeSize(Ty); in detectFARsEligibleStructHelper()
139 if (getContext().getTypeSize(EltTy) > FRLen) in detectFARsEligibleStructHelper()
174 if (isEmptyRecord(getContext(), Ty, true, true) && in detectFARsEligibleStructHelper()
312 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
331 if (getContext().getTypeSize(EltTy) <= FRLen) { in classifyArgumentType()
354 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
400 if (getContext().getTypeAlign(Ty) == 2 * GRLen) { in classifyArgumentType()
425 if (isEmptyRecord(getContext(), Ty, true)) in EmitVAArg()
429 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
[all …]
H A DRISCV.cpp81 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo()
117 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper()
145 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
180 if (isEmptyRecord(getContext(), Ty, true, true)) in detectFPCCEligibleStructHelper()
327 getContext().getTargetInfo().getVScaleRange(getContext().getLangOpts()); in coerceVLSVector()
365 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
368 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
381 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
491 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
496 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
[all …]
H A DAMDGPU.cpp75 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
97 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
127 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
141 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
174 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
189 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
213 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
229 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
256 getContext().getTypeAlignInChars(Ty), in classifyArgumentType()
435 auto &Ctx = CGM.getContext(); in getNullPointer()
[all …]
H A DWebAssembly.cpp63 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
69 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
75 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
108 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
113 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
141 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
146 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
161 !isEmptyRecord(getContext(), Ty, true) && in EmitVAArg()
162 !isSingleElementStruct(Ty, getContext()); in EmitVAArg()
164 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
H A DARM.cpp201 llvm::AttrBuilder B(Fn->getContext()); in setTargetAttributes()
292 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
314 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
371 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
543 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
570 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
598 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
611 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
666 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
731 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
[all …]
H A DPPC.cpp159 if (getContext().isPromotableIntegerType(Ty)) in isPromotableTypeForABI()
232 if (isRecordWithSIMDVectorType(getContext(), Ty)) in getParamTypeAlignment()
241 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
345 (Size = getContext().getTypeSize(RetTy)) <= 64) { in classifyReturnType()
373 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
746 if (getContext().getTypeSize(VT) == 128) in isHomogeneousAggregateBaseType()
776 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
810 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
852 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
877 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
[all …]
H A DX86.cpp461 if (!addFieldSizes(getContext(), RD, Size)) in canExpandIndirectArgument()
466 return Size == getContext().getTypeSize(Ty); in canExpandIndirectArgument()
531 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
650 unsigned Size = getContext().getTypeSize(Ty); in updateFreeRegs()
757 TypeInfo TI = getContext().getTypeInfo(Ty); in classifyArgumentType()
1124 Fn->getContext(), ByValTy); in addX86InterruptAttrs()
1940 } else if (ET == getContext().DoubleTy) { in classify()
2271 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
2921 getContext().LongDoubleTy) in computeInfo()
3018 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
[all …]
H A DNVPTX.cpp103 ASTContext &Context = getContext(); in isUnsupportedType()
139 const uint64_t Size = getContext().getTypeSize(Ty); in coerceToIntArrayWithLimit()
140 const uint64_t Alignment = getContext().getTypeAlign(Ty); in coerceToIntArrayWithLimit()
151 if (getContext().getLangOpts().OpenMP && in classifyReturnType()
152 getContext().getLangOpts().OpenMPIsTargetDevice && in classifyReturnType()
177 if (getContext().getLangOpts().CUDAIsDevice) { in classifyArgumentType()
190 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
272 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
297 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(getContext()); in handleCUDALaunchBoundsAttr()
313 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(getContext()); in handleCUDALaunchBoundsAttr()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/
H A DAVRAsmPrinter.cpp293 MMI->getContext().getOrCreateSymbol(StringRef("__tmp_reg__")), in emitStartOfAsmFile()
294 MCConstantExpr::create(SubTM->getRegTmpIndex(), MMI->getContext())); in emitStartOfAsmFile()
297 MMI->getContext().getOrCreateSymbol(StringRef("__zero_reg__")), in emitStartOfAsmFile()
301 MMI->getContext().getOrCreateSymbol(StringRef("__SREG__")), in emitStartOfAsmFile()
302 MCConstantExpr::create(SubTM->getIORegSREG(), MMI->getContext())); in emitStartOfAsmFile()
306 MMI->getContext().getOrCreateSymbol(StringRef("__SP_H__")), in emitStartOfAsmFile()
307 MCConstantExpr::create(SubTM->getIORegSPH(), MMI->getContext())); in emitStartOfAsmFile()
310 MMI->getContext().getOrCreateSymbol(StringRef("__SP_L__")), in emitStartOfAsmFile()
311 MCConstantExpr::create(SubTM->getIORegSPL(), MMI->getContext())); in emitStartOfAsmFile()
315 MMI->getContext().getOrCreateSymbol(StringRef("__EIND__")), in emitStartOfAsmFile()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSanitizerStats.cpp24 StatTy = ArrayType::get(PointerType::getUnqual(M->getContext()), 2); in SanitizerStatReport()
36 return StructType::get(M->getContext(), in makeModuleStatsTy()
37 {PointerType::getUnqual(M->getContext()), in makeModuleStatsTy()
38 Type::getInt32Ty(M->getContext()), in makeModuleStatsTy()
76 PointerType *Int8PtrTy = PointerType::getUnqual(M->getContext()); in finish()
77 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
78 Type *VoidTy = Type::getVoidTy(M->getContext()); in finish()
94 auto BB = BasicBlock::Create(M->getContext(), "", F); in finish()
H A DUnifyFunctionExitNodes.cpp35 BasicBlock::Create(F.getContext(), "UnifiedUnreachableBlock", &F); in unifyUnreachableBlocks()
36 new UnreachableInst(F.getContext(), UnreachableBlock); in unifyUnreachableBlocks()
59 BasicBlock *NewRetBlock = BasicBlock::Create(F.getContext(), in unifyReturnBlocks()
64 ReturnInst::Create(F.getContext(), nullptr, NewRetBlock); in unifyReturnBlocks()
70 ReturnInst::Create(F.getContext(), PN, NewRetBlock); in unifyReturnBlocks()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64MachObjectWriter.cpp102 Asm.getContext().reportError(Fixup.getLoc(), in getAArch64FixupKindMachOInfo()
180 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
191 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
210 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
242 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
249 Asm.getContext().reportError(Fixup.getLoc(), in recordRelocation()
262 Asm.getContext().reportError( in recordRelocation()
269 Asm.getContext().reportError( in recordRelocation()
277 Asm.getContext().reportError( in recordRelocation()
309 Asm.getContext().reportError( in recordRelocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFStreamer.cpp72 const SourceMgr *SourceManager = getContext().getSourceManager(); in emitPrefixedInstruction()
147 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelReloc()
148 const MCExpr *LabelExpr = MCSymbolRefExpr::create(LabelSym, getContext()); in emitGOTToPCRelReloc()
149 const MCExpr *Eight = MCConstantExpr::create(8, getContext()); in emitGOTToPCRelReloc()
152 MCBinaryExpr::createSub(LabelExpr, Eight, getContext()); in emitGOTToPCRelReloc()
153 MCSymbol *CurrentLocation = getContext().createTempSymbol(); in emitGOTToPCRelReloc()
155 MCSymbolRefExpr::create(CurrentLocation, getContext()); in emitGOTToPCRelReloc()
158 MCBinaryExpr::createSub(CurrentLocationExpr, SubExpr, getContext()); in emitGOTToPCRelReloc()
182 getContext().getOrCreateSymbol(SymExpr->getSymbol().getName()); in emitGOTToPCRelLabel()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetLoweringObjectFileImpl.cpp308 auto &C = getContext(); in emitModuleMetadata()
989 return getContext().getELFSection( in getSectionForLSDA()
1142 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
1170 MCContext &Ctx = getContext(); in InitializeELF()
1265 Streamer.emitLabel(getContext(). in emitModuleMetadata()
1524 MCContext &Ctx = getContext(); in getIndirectSymViaGOTPCRel()
1851 auto &C = getContext(); in emitModuleMetadata()
2007 getContext(), getContext().getTargetTriple(), true, Priority, KeySym, in getStaticCtorSection()
2014 getContext(), getContext().getTargetTriple(), false, Priority, KeySym, in getStaticDtorSection()
2262 MCSymbolRefExpr::create(TM.getSymbol(RHS), getContext()), getContext()); in lowerRelativeReference()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DMetadata.cpp119 LLVMContext &Context = getContext(); in handleChangedMetadata()
489 auto &Context = V->getContext(); in get()
533 assert(&From->getContext() == &To->getContext() && "Expected same context"); in handleRAUW()
1176 auto &Ctx = AInstr->getContext(); in mergeDirectCallProfMetadata()
1339 return MDNode::get(A->getContext(), MDs); in getMostGenericRange()
1454 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1567 const LLVMContext &Ctx = getContext(); in getMetadataImpl()
1670 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1692 MDBuilder MDB(getContext()); in addAnnotationMetadata()
1791 *MDTuple::get(getContext(), in addTypeMetadata()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVTargetObjectFile.cpp21 *getContext().getSubtargetInfo()); in getTextSectionAlignment()
31 SmallDataSection = getContext().getELFSection( in Initialize()
33 SmallBSSSection = getContext().getELFSection(".sbss", ELF::SHT_NOBITS, in Initialize()
42 MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_GOTPCREL, getContext()); in getIndirectSymViaGOTPCRel()
43 const MCExpr *Off = MCConstantExpr::create(FinalOffset, getContext()); in getIndirectSymViaGOTPCRel()
44 return MCBinaryExpr::createAdd(Res, Off, getContext()); in getIndirectSymViaGOTPCRel()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOptimizationRemarkEmitter.h78 LLVMContext &Ctx = Fn.getContext(); in isEnabled()
104 LLVMContext &Ctx = Fn.getContext(); in isEnabled()
136 LLVMContext &Ctx = Fn.getContext(); in isEnabled()
170 MF.getFunction().getContext().getLLVMRemarkStreamer() || in allowExtraAnalysis()
171 MF.getFunction().getContext().getDiagHandlerPtr()->isAnyRemarkEnabled( in allowExtraAnalysis()
183 if (MF.getFunction().getContext().getLLVMRemarkStreamer() ||
185 .getContext()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86WinCOFFTargetStreamer.cpp83 MCContext &getContext() { return getStreamer().getContext(); } in getContext() function in __anon01a812640111::X86WinCOFFTargetStreamer
103 ProcSym->print(OS, getStreamer().getContext().getAsmInfo()); in emitFPOProc()
121 ProcSym->print(OS, getStreamer().getContext().getAsmInfo()); in emitFPOData()
153 getContext().reportError( in checkInFPOPrologue()
162 MCSymbol *Label = getContext().createTempSymbol("cfi", true); in emitFPOLabel()
170 getContext().reportError( in emitFPOProc()
189 getContext().reportError(L, "missing .cv_fpo_endprologue"); in emitFPOEndProc()
243 getContext().reportError( in emitFPOStackAlign()
321 const MCRegisterInfo *MRI = OS.getContext().getRegisterInfo(); in emitFrameDataRecord()
357 CodeViewContext &CVCtx = OS.getContext().getCVContext(); in emitFrameDataRecord()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXImageOptimizer.cpp96 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSampler()
100 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSampler()
113 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePSurface()
119 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePSurface()
131 replaceWith(&I, ConstantInt::getTrue(I.getContext())); in replaceIsTypePTexture()
138 replaceWith(&I, ConstantInt::getFalse(I.getContext())); in replaceIsTypePTexture()

12345678910>>...38