Home
last modified time | relevance | path

Searched refs:MCExpr (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/freebsd/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCExpr.h34 class MCExpr {
67 explicit MCExpr(ExprKind Kind, SMLoc Loc, unsigned SubclassData = 0)
79 MCExpr(const MCExpr &) = delete;
80 MCExpr &operator=(const MCExpr &) = delete;
142 class MCConstantExpr : public MCExpr {
156 : MCExpr(MCExpr::Constant, SMLoc(), in MCConstantExpr()
180 static bool classof(const MCExpr *E) { in classof()
181 return E->getKind() == MCExpr::Constant; in classof()
190 class MCSymbolRefExpr : public MCExpr {
237 static bool classof(const MCExpr *E) { in classof()
[all …]
H A DConstantPools.h25 class MCExpr; variable
32 ConstantPoolEntry(MCSymbol *L, const MCExpr *Val, unsigned Sz, SMLoc Loc_) in ConstantPoolEntry()
36 const MCExpr *Value;
63 const MCExpr *addEntry(const MCExpr *Value, MCContext &Context,
97 const MCExpr *addEntry(MCStreamer &Streamer, const MCExpr *Expr,
H A DMCObjectStreamer.h27 class MCExpr; variable
54 const MCExpr *Value;
114 void emitAssignment(MCSymbol *Symbol, const MCExpr *Value) override;
116 const MCExpr *Value) override;
117 void emitValueImpl(const MCExpr *Value, unsigned Size,
119 void emitULEB128Value(const MCExpr *Value) override;
120 void emitSLEB128Value(const MCExpr *Value) override;
139 void emitValueToOffset(const MCExpr *Offset, unsigned char Value,
169 emitRelocDirective(const MCExpr &Offset, StringRef Name, const MCExpr *Expr,
172 void emitFill(const MCExpr &NumBytes, uint64_t FillValue,
[all …]
H A DMCSection.h33 class MCExpr; variable
523 const MCExpr &NumValues;
530 MCFillFragment(uint64_t Value, uint8_t VSize, const MCExpr &NumValues, in MCFillFragment()
537 const MCExpr &getNumValues() const { return NumValues; } in getNumValues()
583 const MCExpr *Offset;
589 MCOrgFragment(const MCExpr &Offset, int8_t Value, SMLoc Loc) in MCOrgFragment()
592 const MCExpr &getOffset() const { return *Offset; } in getOffset()
608 const MCExpr *Value;
611 MCLEBFragment(const MCExpr &Value, bool IsSigned) in MCLEBFragment()
614 const MCExpr &getValue() const { return *Value; } in getValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DSIProgramInfo.h28 class MCExpr; variable
36 const MCExpr *VGPRBlocks = nullptr;
37 const MCExpr *SGPRBlocks = nullptr;
48 const MCExpr *ScratchSize = nullptr;
52 const MCExpr *ScratchBlocks = nullptr;
55 const MCExpr *ScratchEnable = nullptr;
67 const MCExpr *ComputePGMRSrc3 = nullptr;
69 const MCExpr *NumVGPR = nullptr;
70 const MCExpr *NumArchVGPR = nullptr;
71 const MCExpr *NumAccVGPR = nullptr;
[all …]
H A DSIProgramInfo.cpp28 const MCExpr *ZeroExpr = MCConstantExpr::create(0, Ctx); in reset()
158 static const MCExpr *MaskShift(const MCExpr *Val, uint32_t Mask, uint32_t Shift, in MaskShift()
161 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in MaskShift()
165 const MCExpr *ShiftExpr = MCConstantExpr::create(Shift, Ctx); in MaskShift()
171 const MCExpr *SIProgramInfo::getComputePGMRSrc1(const GCNSubtarget &ST, in getComputePGMRSrc1()
174 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getComputePGMRSrc1()
175 const MCExpr *Res = MCBinaryExpr::createOr( in getComputePGMRSrc1()
181 const MCExpr *SIProgramInfo::getPGMRSrc1(CallingConv::ID CC, in getPGMRSrc1()
189 const MCExpr *RegExpr = MCConstantExpr::create(Reg, Ctx); in getPGMRSrc1()
190 const MCExpr *Res = MCBinaryExpr::createOr( in getPGMRSrc1()
[all …]
H A DAMDGPUMCResourceInfo.cpp58 const MCExpr *MCResourceInfo::getSymRefExpr(StringRef FuncName, in getSymRefExpr()
71 const MCExpr *MaxExpr = MCConstantExpr::create(RegCount, OutContext); in assignMaxRegs()
107 const MCExpr *MCResourceInfo::flattenedCycleMax(MCSymbol *RecSym, in flattenedCycleMax()
110 SmallPtrSet<const MCExpr *, 8> Seen; in flattenedCycleMax()
111 SmallVector<const MCExpr *, 8> WorkList; in flattenedCycleMax()
114 const MCExpr *RecExpr = RecSym->getVariableValue(); in flattenedCycleMax()
118 const MCExpr *CurExpr = WorkList.pop_back_val(); in flattenedCycleMax()
148 case MCExpr::ExprKind::Constant: { in flattenedCycleMax()
153 case MCExpr::ExprKind::SymbolRef: { in flattenedCycleMax()
157 const MCExpr *SymVal = SymRef.getVariableValue(); in flattenedCycleMax()
[all …]
H A DAMDGPUAsmPrinter.h69 void emitCommonFunctionComments(const MCExpr *NumVGPR, const MCExpr *NumAGPR,
70 const MCExpr *TotalNumVGPR,
71 const MCExpr *NumSGPR,
72 const MCExpr *ScratchSize, uint64_t CodeSize,
78 const MCExpr *getAmdhsaKernelCodeProperties(const MachineFunction &MF) const;
86 SmallString<128> getMCExprStr(const MCExpr *Value);
114 const MCExpr *lowerConstant(const Constant *CV, const Constant *BaseCV,
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUMCExpr.h58 const MCExpr **RawArgs;
59 ArrayRef<const MCExpr *> Args;
61 AMDGPUMCExpr(VariantKind Kind, ArrayRef<const MCExpr *> Args, MCContext &Ctx);
71 create(VariantKind Kind, ArrayRef<const MCExpr *> Args, MCContext &Ctx);
73 static const AMDGPUMCExpr *createOr(ArrayRef<const MCExpr *> Args, in createOr()
78 static const AMDGPUMCExpr *createMax(ArrayRef<const MCExpr *> Args, in createMax()
83 static const AMDGPUMCExpr *createExtraSGPRs(const MCExpr *VCCUsed,
84 const MCExpr *FlatScrUsed,
87 static const AMDGPUMCExpr *createTotalNumVGPR(const MCExpr *NumAGPR,
88 const MCExpr *NumVGPR,
[all …]
H A DAMDGPUMCKernelDescriptor.h22 class MCExpr; variable
28 const MCExpr *group_segment_fixed_size = nullptr;
29 const MCExpr *private_segment_fixed_size = nullptr;
30 const MCExpr *kernarg_size = nullptr;
31 const MCExpr *compute_pgm_rsrc3 = nullptr;
32 const MCExpr *compute_pgm_rsrc1 = nullptr;
33 const MCExpr *compute_pgm_rsrc2 = nullptr;
34 const MCExpr *kernel_code_properties = nullptr;
35 const MCExpr *kernarg_preload = nullptr;
42 static void bits_set(const MCExpr *&Dst, const MCExpr *Value, uint32_t Shift,
[all …]
H A DAMDGPUMCExpr.cpp26 AMDGPUMCExpr::AMDGPUMCExpr(VariantKind Kind, ArrayRef<const MCExpr *> Args, in AMDGPUMCExpr()
37 RawArgs = static_cast<const MCExpr **>( in AMDGPUMCExpr()
38 Ctx.allocate(sizeof(const MCExpr *) * Args.size())); in AMDGPUMCExpr()
40 this->Args = ArrayRef<const MCExpr *>(RawArgs, Args.size()); in AMDGPUMCExpr()
46 ArrayRef<const MCExpr *> Args, in create()
51 const MCExpr *AMDGPUMCExpr::getSubExpr(size_t Index) const { in getSubExpr()
100 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateExtraSGPRs()
129 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateTotalNumVGPR()
155 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateAlignTo()
176 auto TryGetMCExprValue = [&](const MCExpr *Arg, uint64_t &ConstantValue) { in evaluateOccupancy()
[all …]
H A DAMDGPUTargetStreamer.h102 const MCExpr *NextVGPR, const MCExpr *NextSGPR, in EmitAmdhsaKernelDescriptor()
103 const MCExpr *ReserveVCC, in EmitAmdhsaKernelDescriptor()
104 const MCExpr *ReserveFlatScr) {} in EmitAmdhsaKernelDescriptor()
168 const MCExpr *NextVGPR, const MCExpr *NextSGPR,
169 const MCExpr *ReserveVCC,
170 const MCExpr *ReserveFlatScr) override;
177 void EmitNote(StringRef Name, const MCExpr *DescSize, unsigned NoteType,
221 const MCExpr *NextVGPR, const MCExpr *NextSGPR,
222 const MCExpr *ReserveVCC,
223 const MCExpr *ReserveFlatScr) override;
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86TargetObjectFile.cpp19 const MCExpr *X86_64MachoTargetObjectFile::getTTypeGlobalReference( in getTTypeGlobalReference()
27 const MCExpr *Res = in getTTypeGlobalReference()
29 const MCExpr *Four = MCConstantExpr::create(4, getContext()); in getTTypeGlobalReference()
43 const MCExpr *X86_64MachoTargetObjectFile::getIndirectSymViaGOTPCRel( in getIndirectSymViaGOTPCRel()
50 const MCExpr *Res = in getIndirectSymViaGOTPCRel()
52 const MCExpr *Off = MCConstantExpr::create(FinalOff, getContext()); in getIndirectSymViaGOTPCRel()
60 const MCExpr *X86ELFTargetObjectFile::getDebugThreadLocalSymbol( in getDebugThreadLocalSymbol()
65 const MCExpr *X86_64ELFTargetObjectFile::getIndirectSymViaGOTPCRel( in getIndirectSymViaGOTPCRel()
69 const MCExpr *Res = in getIndirectSymViaGOTPCRel()
71 const MCExpr *Off = MCConstantExpr::create(FinalOffset, getContext()); in getIndirectSymViaGOTPCRel()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTUtils.h26 class MCExpr; variable
69 const MCExpr *compute_pgm_resource1_registers = nullptr;
70 const MCExpr *compute_pgm_resource2_registers = nullptr;
72 const MCExpr *is_dynamic_callstack = nullptr;
73 const MCExpr *wavefront_sgpr_count = nullptr;
74 const MCExpr *workitem_vgpr_count = nullptr;
75 const MCExpr *workitem_private_segment_byte_size = nullptr;
81 const MCExpr *&getMCExprForIndex(int Index);
84 function_ref<void(const MCExpr *, raw_ostream &, const MCAsmInfo *)>;
H A DSIDefinesUtils.h44 inline const MCExpr *maskShiftSet(const MCExpr *Val, uint32_t Mask, in maskShiftSet()
47 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in maskShiftSet()
51 const MCExpr *ShiftExpr = MCConstantExpr::create(Shift, Ctx); in maskShiftSet()
63 inline const MCExpr *maskShiftGet(const MCExpr *Val, uint32_t Mask, in maskShiftGet()
66 const MCExpr *ShiftExpr = MCConstantExpr::create(Shift, Ctx); in maskShiftGet()
70 const MCExpr *MaskExpr = MCConstantExpr::create(Mask, Ctx); in maskShiftGet()
H A DAMDGPUPALMetadata.h27 using RegisterExprMap = DenseMap<unsigned, const MCExpr *>;
58 void setRsrc1(unsigned CC, const MCExpr *Val, MCContext &Ctx);
63 void setRsrc2(unsigned CC, const MCExpr *Val, MCContext &Ctx);
79 void setRegister(unsigned Reg, const MCExpr *Val, MCContext &Ctx);
88 void setNumUsedVgprs(unsigned CC, const MCExpr *Val, MCContext &Ctx);
93 void setNumUsedAgprs(unsigned CC, const MCExpr *Val);
99 void setNumUsedSgprs(unsigned CC, const MCExpr *Val, MCContext &Ctx);
103 void setScratchSize(unsigned CC, const MCExpr *Val, MCContext &Ctx);
117 void setFunctionNumUsedVgprs(StringRef FnName, const MCExpr *Val);
123 void setFunctionNumUsedSgprs(StringRef FnName, const MCExpr *Val);
[all …]
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/
H A DWinException.h22 class MCExpr; variable
73 SmallVectorImpl<std::pair<const MCExpr *, int>> &IPToStateTable);
80 const MCExpr *create32bitRef(const MCSymbol *Value);
81 const MCExpr *create32bitRef(const GlobalValue *GV);
82 const MCExpr *getLabel(const MCSymbol *Label);
83 const MCExpr *getLabelPlusOne(const MCSymbol *Label);
84 const MCExpr *getOffset(const MCSymbol *OffsetOf, const MCSymbol *OffsetFrom);
85 const MCExpr *getOffsetPlusOne(const MCSymbol *OffsetOf,
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsTargetStreamer.h27 virtual void emitGPRel32Value(const MCExpr *);
28 virtual void emitGPRel64Value(const MCExpr *);
29 virtual void emitDTPRel32Value(const MCExpr *);
30 virtual void emitDTPRel64Value(const MCExpr *);
31 virtual void emitTPRel32Value(const MCExpr *);
32 virtual void emitTPRel64Value(const MCExpr *);
222 void emitGPRel32Value(const MCExpr *) override;
223 void emitGPRel64Value(const MCExpr *) override;
224 void emitDTPRel32Value(const MCExpr *) override;
225 void emitDTPRel64Value(const MCExpr *) override;
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64TargetObjectFile.cpp59 const MCExpr *AArch64_ELFTargetObjectFile::getIndirectSymViaGOTPCRel( in getIndirectSymViaGOTPCRel()
63 const MCExpr *Res = in getIndirectSymViaGOTPCRel()
65 const MCExpr *Off = MCConstantExpr::create(FinalOffset, getContext()); in getIndirectSymViaGOTPCRel()
73 const MCExpr *AArch64_MachoTargetObjectFile::getTTypeGlobalReference( in getTTypeGlobalReference()
82 const MCExpr *Res = in getTTypeGlobalReference()
86 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getTTypeGlobalReference()
100 const MCExpr *AArch64_MachoTargetObjectFile::getIndirectSymViaGOTPCRel( in getIndirectSymViaGOTPCRel()
107 const MCExpr *Res = in getIndirectSymViaGOTPCRel()
111 const MCExpr *PC = MCSymbolRefExpr::create(PCSym, getContext()); in getIndirectSymViaGOTPCRel()
135 const MCExpr *&StubAuthPtrRef = TargetMMI.getAuthPtrStubEntry(StubSym); in getAuthPtrSlotSymbolHelper()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYTargetStreamer.h34 const MCExpr *addEntry(MCStreamer &Streamer, const MCExpr *Value,
35 unsigned Size, SMLoc Loc, const MCExpr *AdjustExpr);
55 DenseMap<SymbolIndex, const MCExpr *> ConstantMap;
69 const MCExpr *addConstantPoolEntry(const MCExpr *, SMLoc Loc,
70 const MCExpr *AdjustExpr = nullptr);
H A DCSKYTargetStreamer.cpp42 const MCExpr *CSKYConstantPool::addEntry(MCStreamer &Streamer, in addEntry()
43 const MCExpr *Value, unsigned Size, in addEntry()
44 SMLoc Loc, const MCExpr *AdjustExpr) { in addEntry()
85 const MCExpr *
86 CSKYTargetStreamer::addConstantPoolEntry(const MCExpr *Expr, SMLoc Loc, in addConstantPoolEntry()
87 const MCExpr *AdjustExpr) { in addConstantPoolEntry()
91 const MCExpr *OrigExpr = Expr; in addConstantPoolEntry()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMMCAsmInfo.cpp185 const MCExpr *Sub = Expr.getSubExpr(); in printSpecifierExpr()
186 if (Sub->getKind() != MCExpr::SymbolRef) in printSpecifierExpr()
189 if (Sub->getKind() != MCExpr::SymbolRef) in printSpecifierExpr()
193 const MCSpecifierExpr *ARM::createUpper16(const MCExpr *Expr, MCContext &Ctx) { in createUpper16()
197 const MCSpecifierExpr *ARM::createLower16(const MCExpr *Expr, MCContext &Ctx) { in createLower16()
201 const MCSpecifierExpr *ARM::createUpper8_15(const MCExpr *Expr, in createUpper8_15()
206 const MCSpecifierExpr *ARM::createUpper0_7(const MCExpr *Expr, MCContext &Ctx) { in createUpper0_7()
210 const MCSpecifierExpr *ARM::createLower8_15(const MCExpr *Expr, in createLower8_15()
215 const MCSpecifierExpr *ARM::createLower0_7(const MCExpr *Expr, MCContext &Ctx) { in createLower0_7()
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCExpr.cpp54 void MCExpr::print(raw_ostream &OS, const MCAsmInfo *MAI, in print()
58 case MCExpr::Target: in print()
60 case MCExpr::Constant: { in print()
88 case MCExpr::SymbolRef: { in print()
106 case MCExpr::Unary: { in print()
118 case MCExpr::Binary: { in print()
176 case MCExpr::Specifier: { in print()
193 LLVM_DUMP_METHOD void MCExpr::dump() const { in dump()
201 const MCBinaryExpr *MCBinaryExpr::create(Opcode Opc, const MCExpr *LHS, in create()
202 const MCExpr *RHS, MCContext &Ctx, in create()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DFaultMaps.h19 class MCExpr; variable
46 const MCExpr *FaultingOffsetExpr = nullptr;
47 const MCExpr *HandlerOffsetExpr = nullptr;
51 explicit FaultInfo(FaultMaps::FaultKind Kind, const MCExpr *FaultingOffset, in FaultInfo()
52 const MCExpr *HandlerOffset) in FaultInfo()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFStreamer.cpp140 const MCExpr *Expr = Operand.getExpr(); in emitGOTToPCRelReloc()
146 const MCExpr *LabelExpr = MCSymbolRefExpr::create(LabelSym, getContext()); in emitGOTToPCRelReloc()
147 const MCExpr *Eight = MCConstantExpr::create(8, getContext()); in emitGOTToPCRelReloc()
149 const MCExpr *SubExpr = in emitGOTToPCRelReloc()
152 const MCExpr *CurrentLocationExpr = in emitGOTToPCRelReloc()
155 const MCExpr *SubExpr2 = in emitGOTToPCRelReloc()
173 const MCExpr *Expr = Operand.getExpr(); in emitGOTToPCRelLabel()
211 const MCExpr *Expr = Operand.getExpr(); in isPartOfGOTToPCRelPair()

12345678910>>...12