Home
last modified time | relevance | path

Searched refs:MCConstantExpr (Results 1 – 25 of 52) sorted by relevance

123

/external/llvm/lib/Target/AArch64/AsmParser/
DAArch64AsmParser.cpp419 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm9()
428 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s4()
437 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s8()
446 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isSImm7s16()
490 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isUImm12Offset()
501 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_7()
510 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_8()
519 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_15()
528 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm1_16()
537 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_31()
[all …]
/external/llvm/lib/Target/X86/AsmParser/
DX86Operand.h139 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti16i8()
153 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti32i8()
167 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti64i8()
181 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmSExti64i32()
192 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImmUnsignedi8()
274 getMemBaseReg() == X86::SI) && isa<MCConstantExpr>(getMemDisp()) && in isSrcIdx()
275 cast<MCConstantExpr>(getMemDisp())->getValue() == 0; in isSrcIdx()
294 getMemBaseReg() == X86::DI) && isa<MCConstantExpr>(getMemDisp()) && in isDstIdx()
295 cast<MCConstantExpr>(getMemDisp())->getValue() == 0; in isDstIdx()
359 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr)) in addExpr()
[all …]
DX86AsmInstrumentation.cpp319 const MCExpr *Disp = MCConstantExpr::Create(0, Ctx); in InstrumentMOVSBase()
328 const MCExpr *Disp = MCConstantExpr::Create(-1, Ctx); in InstrumentMOVSBase()
338 const MCExpr *Disp = MCConstantExpr::Create(0, Ctx); in InstrumentMOVSBase()
346 const MCExpr *Disp = MCConstantExpr::Create(-1, Ctx); in InstrumentMOVSBase()
464 const MCConstantExpr *Disp = in ComputeMemOperandAddress()
465 MCConstantExpr::Create(ApplyDisplacementBounds(Residue), Ctx); in ComputeMemOperandAddress()
489 static_cast<const MCConstantExpr *>(Op.getMemDisp())->getValue(); in AddDisplacement()
497 const MCExpr *Disp = MCConstantExpr::Create(NewDisplacement, Ctx); in AddDisplacement()
647 const MCExpr *Disp = MCConstantExpr::Create(kShadowOffset, Ctx); in InstrumentMemOperandSmall()
673 const MCExpr *Disp = MCConstantExpr::Create(1, Ctx); in InstrumentMemOperandSmall()
[all …]
DX86AsmParser.cpp975 const MCExpr *Disp = MCConstantExpr::Create(0, getContext()); in DefaultMemSIOperand()
984 const MCExpr *Disp = MCConstantExpr::Create(0, getContext()); in DefaultMemDIOperand()
1267 const MCExpr *Imm = MCConstantExpr::Create(SM.getImm(), getContext()); in ParseIntelBracExpression()
1384 const MCExpr *Disp = MCConstantExpr::Create(ImmDisp, getContext()); in ParseIntelSegmentOverride()
1436 MCConstantExpr::Create(rndMode, Parser.getContext()); in ParseRoundingModeOp()
1493 const MCExpr *Disp = MCConstantExpr::Create(SM.getImm(), getContext()); in ParseIntelMemOperand()
1510 if (const MCConstantExpr *OrigDisp = dyn_cast<MCConstantExpr>(Disp)) in ParseIntelDotOperator()
1543 NewDisp = MCConstantExpr::Create(OrigDispVal + DotDispVal, getContext()); in ParseIntelDotOperator()
1617 const MCExpr *Imm = MCConstantExpr::Create(CVal, getContext()); in ParseIntelOperator()
1677 const MCExpr *ImmExpr = MCConstantExpr::Create(Imm, getContext()); in ParseIntelOperand()
[all …]
/external/llvm/lib/Target/ARM/AsmParser/
DARMAsmParser.cpp489 const MCConstantExpr *OffsetImm; // Offset immediate value
735 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isUnsignedOffset()
749 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) { in isSignedOffset()
767 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val); in isThumbMemPC()
781 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFPImm()
788 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFBits16()
795 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isFBits32()
802 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm8s4()
809 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_1020s4()
816 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()); in isImm0_508s4()
[all …]
/external/llvm/lib/Target/X86/MCTargetDesc/
DX86MachORelocationInfo.cpp42 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx)); in createExprForRelocation()
51 MCConstantExpr::Create(4, Ctx), in createExprForRelocation()
56 MCConstantExpr::Create(2, Ctx), in createExprForRelocation()
61 MCConstantExpr::Create(1, Ctx), in createExprForRelocation()
97 RSym->setVariableValue(MCConstantExpr::Create(RSymAddr, Ctx)); in createExprForRelocation()
DX86ELFRelocationInfo.cpp40 Sym->setVariableValue(MCConstantExpr::Create(SymAddr, Ctx)); in createExprForRelocation()
116 Expr = MCConstantExpr::Create(SymSize, Ctx); in createExprForRelocation()
124 MCConstantExpr::Create(Addend, Ctx), in createExprForRelocation()
/external/llvm/lib/MC/MCDisassembler/
DMCExternalSymbolizer.cpp93 Add = MCConstantExpr::Create((int)SymbolicOp.AddSymbol.Value, Ctx); in tryAddingSymbolicOperand()
104 Sub = MCConstantExpr::Create((int)SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand()
110 Off = MCConstantExpr::Create(SymbolicOp.Value, Ctx); in tryAddingSymbolicOperand()
132 Expr = MCConstantExpr::Create(0, Ctx); in tryAddingSymbolicOperand()
/external/llvm/lib/MC/
DMCExpr.cpp38 OS << cast<MCConstantExpr>(*this).getValue(); in print()
74 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) { in print()
83 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) { in print()
112 if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) { in print()
143 const MCConstantExpr *MCConstantExpr::Create(int64_t Value, MCContext &Ctx) { in Create()
144 return new (Ctx) MCConstantExpr(Value); in Create()
430 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(this)) { in evaluateAsAbsolute()
615 Res = MCValue::get(cast<MCConstantExpr>(this)->getValue()); in EvaluateAsRelocatableImpl()
/external/llvm/lib/Target/AArch64/Disassembler/
DAArch64ExternalSymbolizer.cpp175 Add = MCConstantExpr::Create(SymbolicOp.AddSymbol.Value, Ctx); in tryAddingSymbolicOperand()
186 Sub = MCConstantExpr::Create(SymbolicOp.SubtractSymbol.Value, Ctx); in tryAddingSymbolicOperand()
192 Off = MCConstantExpr::Create(SymbolicOp.Value, Ctx); in tryAddingSymbolicOperand()
214 Expr = MCConstantExpr::Create(0, Ctx); in tryAddingSymbolicOperand()
/external/llvm/lib/Target/XCore/InstPrinter/
DXCoreInstPrinter.cpp54 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS()); in printExpr()
/external/llvm/lib/CodeGen/AsmPrinter/
DWin64Exception.cpp88 MCConstantExpr::Create(I->second, Asm->OutContext)); in beginFunction()
141 return MCConstantExpr::Create(0, Asm->OutContext); in createImageRel32()
148 return MCConstantExpr::Create(0, Asm->OutContext); in createImageRel32()
237 MCConstantExpr::Create(1, Asm->OutContext), in emitCSpecificHandlerTable()
480 FrameAllocOffsetRef = MCConstantExpr::Create(0, Asm->OutContext); in emitCXXFrameHandler3Table()
/external/llvm/lib/Target/XCore/
DXCoreMCInstLower.cpp76 const MCConstantExpr *OffsetExpr = MCConstantExpr::Create(Offset, *Ctx); in LowerSymbolOperand()
DXCoreAsmPrinter.cpp103 MCConstantExpr::Create(ATy->getNumElements(), in emitArrayBound()
160 OutStreamer.EmitELFSize(GVSym, MCConstantExpr::Create(Size, OutContext)); in EmitGlobalVariable()
/external/llvm/lib/Target/X86/
DX86TargetObjectFile.cpp36 const MCExpr *Four = MCConstantExpr::Create(4, getContext()); in getTTypeGlobalReference()
59 const MCExpr *Off = MCConstantExpr::Create(FinalOff, getContext()); in getIndirectSymViaGOTPCRel()
/external/llvm/lib/Target/PowerPC/
DPPCTargetObjectFile.cpp60 MCConstantExpr::Create(0x8000, getContext()), in getDebugThreadLocalSymbol()
/external/llvm/lib/Target/X86/InstPrinter/
DX86IntelInstPrinter.cpp132 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
DX86ATTInstPrinter.cpp151 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr()); in printPCRelImm()
/external/llvm/lib/Target/Mips/
DMipsMCInstLower.cpp112 const MCConstantExpr *OffsetExpr = MCConstantExpr::Create(Offset, *Ctx); in LowerSymbolOperand()
/external/llvm/lib/Target/AArch64/
DAArch64MCInstLower.cpp75 Expr, MCConstantExpr::Create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperandDarwin()
145 Expr, MCConstantExpr::Create(MO.getOffset(), Ctx), Ctx); in lowerSymbolOperandELF()
/external/llvm/include/llvm/MC/
DMCExpr.h130 class MCConstantExpr : public MCExpr {
133 explicit MCConstantExpr(int64_t Value) in MCConstantExpr() function
140 static const MCConstantExpr *Create(int64_t Value, MCContext &Ctx);
/external/llvm/lib/Target/Mips/MCTargetDesc/
DMipsMCExpr.cpp35 if (!isa<MCConstantExpr>(BE->getRHS())) in isSupportedBinaryExpr()
/external/llvm/lib/Target/SystemZ/MCTargetDesc/
DSystemZMCCodeEmitter.cpp204 Expr = MCConstantExpr::Create(MO.getImm() + Offset, Ctx); in getPCRelEncoding()
212 const MCExpr *OffsetExpr = MCConstantExpr::Create(Offset, Ctx); in getPCRelEncoding()
/external/llvm/lib/Target/Hexagon/
DHexagonMCInstLower.cpp34 ME = MCBinaryExpr::CreateAdd(ME, MCConstantExpr::Create(MO.getOffset(), MC), in GetSymbolRef()
/external/llvm/lib/Target/SystemZ/
DSystemZMCInstLower.cpp73 const MCExpr *OffsetExpr = MCConstantExpr::Create(Offset, Ctx); in getExpr()

123