|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/MC/MCExpr.h 146 static const MCConstantExpr *create(int64_t Value, MCContext &Ctx,
include/llvm/Support/Casting.h 58 return To::classof(&Val);
66 static inline bool doit(const From &) { return true; }
77 return isa_impl<To, From>::doit(Val);
104 static inline bool doit(const From *Val) {
106 return isa_impl<To, From>::doit(*Val);
106 return isa_impl<To, From>::doit(*Val);
122 return isa_impl_wrap<To, SimpleFrom,
132 return isa_impl_cl<To,FromTy>::doit(Val);
142 return isa_impl_wrap<X, const Y,
168 using ret_type = const To &; // Normal case, return Ty&
176 using ret_type = const To *; // Constant pointer arg case, return const Ty*
198 using ret_type = typename cast_retty<To, SimpleFrom>::ret_type;
204 using ret_type = typename cast_retty_impl<To,FromTy>::ret_type;
210 To, From, typename simplify_type<From>::SimpleType>::ret_type;
227 static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
228 typename cast_retty<To, FromTy>::ret_type Res2
256 inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
258 return cast_convert_val<X, Y,
263 inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
265 return cast_convert_val<X, Y*,
337 LLVM_NODISCARD inline typename cast_retty<X, Y>::ret_type dyn_cast(Y &Val) {
342 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type dyn_cast(Y *Val) {
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
343 return isa<X>(Val) ? cast<X>(Val) : nullptr;
366 LLVM_NODISCARD inline typename cast_retty<X, Y *>::ret_type
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
368 return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp 635 MCConstantExpr::create(Size, OutContext));
980 MCConstantExpr::create(FrameOffset, OutContext));
1350 OutStreamer->emitELFSize(Name, MCConstantExpr::create(Size, OutContext));
2137 Expr, MCConstantExpr::create(Offset, OutContext), OutContext);
2169 return MCConstantExpr::create(0, Ctx);
2172 return MCConstantExpr::create(CI->getZExtValue(), Ctx);
2213 return MCBinaryExpr::createAdd(Base, MCConstantExpr::create(Offset, Ctx),
2259 const MCExpr *MaskExpr = MCConstantExpr::create(~0ULL >> (64-InBits), Ctx);
2281 RelocExpr, MCConstantExpr::create(Addend, Ctx), Ctx);
lib/CodeGen/AsmPrinter/WinException.cpp 300 return MCConstantExpr::create(0, Asm->OutContext);
309 return MCConstantExpr::create(0, Asm->OutContext);
318 MCConstantExpr::create(1, Asm->OutContext),
332 MCConstantExpr::create(1, Asm->OutContext),
568 MCConstantExpr::create(FuncInfo.SEHSetFrameOffset, Ctx);
579 const MCExpr *EntrySize = MCConstantExpr::create(16, Ctx);
634 ExceptOrNull = MCConstantExpr::create(0, Ctx);
639 : MCConstantExpr::create(1, Ctx);
841 FrameAllocOffsetRef = MCConstantExpr::create(Offset, Asm->OutContext);
843 FrameAllocOffsetRef = MCConstantExpr::create(0, Asm->OutContext);
960 MCConstantExpr::create(Offset, Ctx));
lib/CodeGen/TargetLoweringObjectFileImpl.cpp 382 const MCExpr *E = MCConstantExpr::create(Size, getContext());
1186 MCBinaryExpr::createAdd(BSymExpr, MCConstantExpr::create(Offset, Ctx), Ctx);
lib/MC/ConstantPools.cpp 41 const MCConstantExpr *C = dyn_cast<MCConstantExpr>(Value);
41 const MCConstantExpr *C = dyn_cast<MCConstantExpr>(Value);
lib/MC/MCAsmStreamer.cpp 964 EmitValue(MCConstantExpr::create(Value, getContext()), Size);
968 EmitValue(MCConstantExpr::create(Value, getContext(), true), Size);
lib/MC/MCCodeView.cpp 213 MCConstantExpr::create(CurrentOffset, Ctx));
653 MCBinaryExpr::createAdd(SRE, MCConstantExpr::create(Bias, Ctx), Ctx);
lib/MC/MCContext.cpp 274 Streamer.EmitAssignment(Symbol, MCConstantExpr::create(Val, *this));
lib/MC/MCDisassembler/MCExternalSymbolizer.cpp 96 Add = MCConstantExpr::create((int)SymbolicOp.AddSymbol.Value, Ctx);
107 Sub = MCConstantExpr::create((int)SymbolicOp.SubtractSymbol.Value, Ctx);
113 Off = MCConstantExpr::create(SymbolicOp.Value, Ctx);
135 Expr = MCConstantExpr::create(0, Ctx);
lib/MC/MCDwarf.cpp 127 MCConstantExpr::create(IntVal, MCOS.getContext());
140 const MCExpr *RHS = MCConstantExpr::create(IntVal, Ctx);
lib/MC/MCELFStreamer.cpp 322 ->setSize(MCConstantExpr::create(Size, getContext()));
lib/MC/MCExpr.cpp 47 auto Value = cast<MCConstantExpr>(*this).getValue();
48 auto PrintInHex = cast<MCConstantExpr>(*this).useHexFormat();
94 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) {
105 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) {
105 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) {
135 if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
169 const MCConstantExpr *MCConstantExpr::create(int64_t Value, MCContext &Ctx,
171 return new (Ctx) MCConstantExpr(Value, PrintInHex);
496 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(this)) {
496 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(this)) {
709 Res = MCValue::get(cast<MCConstantExpr>(this)->getValue());
lib/MC/MCParser/AsmParser.cpp 1169 bool DoInline = isa<MCConstantExpr>(V) && !Variant;
1189 Res = MCConstantExpr::create(IntVal, getContext());
1220 Res = MCConstantExpr::create(IntVal, getContext());
1444 Res = MCConstantExpr::create(Value, getContext());
3055 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3055 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3546 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3546 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3563 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3563 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
3783 if (const auto *MCE = dyn_cast<MCConstantExpr>(Value))
3783 if (const auto *MCE = dyn_cast<MCConstantExpr>(Value))
4756 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
4756 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
5691 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value);
5691 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value);
5707 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value);
5707 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value);
6058 else if (!isa<MCConstantExpr>(Sym->getVariableValue()))
lib/MC/MCStreamer.cpp 204 emitFill(*MCConstantExpr::create(NumBytes, getContext()), FillValue);
lib/MC/MCWinCOFFStreamer.cpp 237 MCE, MCConstantExpr::create(Offset, getContext()), getContext());
256 MCE, MCConstantExpr::create(Offset, getContext()), getContext());
lib/MC/MachObjectWriter.cpp 91 if (const MCConstantExpr *C =
92 dyn_cast<const MCConstantExpr>(S.getVariableValue()))
lib/Target/AArch64/AArch64AsmPrinter.cpp 740 Value, MCConstantExpr::create(2, OutContext), OutContext);
lib/Target/AArch64/AArch64MCInstLower.cpp 110 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
182 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
231 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp 634 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
634 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
656 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
656 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
680 auto *MCE = dyn_cast<MCConstantExpr>(getImm());
728 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
728 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
740 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
740 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
753 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
753 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
774 if (auto *CE = dyn_cast<MCConstantExpr>(getShiftedImmVal()))
778 if (auto *CE = dyn_cast<MCConstantExpr>(getImm())) {
852 if (!isShiftedImm() && (!isImm() || !isa<MCConstantExpr>(getImm())))
870 if (!isShiftedImm() && (!isImm() || !isa<MCConstantExpr>(getImm())))
895 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
895 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
905 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
905 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
972 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
972 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
983 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
983 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1136 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1136 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1388 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1388 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1404 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1404 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1418 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
1418 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
1568 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1568 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1582 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1582 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1593 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1593 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1600 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1600 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1607 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1607 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1616 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1616 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1624 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1624 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1634 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1634 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1648 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1648 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1662 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1662 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(getImm());
1773 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1773 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1782 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1782 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
1789 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1789 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1795 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
1795 const MCConstantExpr *MCE = cast<MCConstantExpr>(getImm());
2377 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
2377 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
2792 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
2792 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
2867 const MCExpr *Expr = MCConstantExpr::create(Op1, getContext());
2875 Expr = MCConstantExpr::create(Op2, getContext());
2993 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
2993 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
3104 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
3104 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
3456 if (getParser().parseExpression(ImmVal) || !isa<MCConstantExpr>(ImmVal) ||
3457 cast<MCConstantExpr>(ImmVal)->getValue() != 0) {
3532 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal)) {
3532 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal)) {
3534 MCConstantExpr::create(MCE->getValue(), getContext()), S, getLoc(),
3685 if (isa<MCConstantExpr>(SubExprVal)) {
3686 uint64_t Imm = (cast<MCConstantExpr>(SubExprVal))->getValue();
3695 MCConstantExpr::create(Imm, Ctx), S, E, Ctx));
4505 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4505 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4519 const MCExpr *NewOp3 = MCConstantExpr::create(NewOp3Val, getContext());
4520 const MCExpr *NewOp4 = MCConstantExpr::create(NewOp4Val, getContext());
4537 const MCConstantExpr *LSBCE = dyn_cast<MCConstantExpr>(LSBOp.getImm());
4537 const MCConstantExpr *LSBCE = dyn_cast<MCConstantExpr>(LSBOp.getImm());
4538 const MCConstantExpr *WidthCE = dyn_cast<MCConstantExpr>(WidthOp.getImm());
4538 const MCConstantExpr *WidthCE = dyn_cast<MCConstantExpr>(WidthOp.getImm());
4570 const MCExpr *ImmRExpr = MCConstantExpr::create(ImmR, getContext());
4571 const MCExpr *ImmSExpr = MCConstantExpr::create(ImmS, getContext());
4593 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4593 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4594 const MCConstantExpr *Op4CE = dyn_cast<MCConstantExpr>(Op4.getImm());
4594 const MCConstantExpr *Op4CE = dyn_cast<MCConstantExpr>(Op4.getImm());
4627 MCConstantExpr::create(NewOp3Val, getContext());
4629 MCConstantExpr::create(NewOp4Val, getContext());
4657 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4657 const MCConstantExpr *Op3CE = dyn_cast<MCConstantExpr>(Op3.getImm());
4658 const MCConstantExpr *Op4CE = dyn_cast<MCConstantExpr>(Op4.getImm());
4658 const MCConstantExpr *Op4CE = dyn_cast<MCConstantExpr>(Op4.getImm());
4685 MCConstantExpr::create(NewOp4Val, getContext());
4717 cast<MCConstantExpr>(Op3.getImm())->getValue() == 0) {
5282 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
5282 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
5580 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
5580 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
5734 auto *MCE = dyn_cast<MCConstantExpr>(ImmVal);
5751 AArch64Operand::CreateImm(MCConstantExpr::create(Pattern, getContext()),
lib/Target/AArch64/Disassembler/AArch64ExternalSymbolizer.cpp 178 Add = MCConstantExpr::create(SymbolicOp.AddSymbol.Value, Ctx);
189 Sub = MCConstantExpr::create(SymbolicOp.SubtractSymbol.Value, Ctx);
195 Off = MCConstantExpr::create(SymbolicOp.Value, Ctx);
217 Expr = MCConstantExpr::create(0, Ctx);
lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp 1343 const MCConstantExpr *BranchTarget =
1344 dyn_cast<MCConstantExpr>(MI->getOperand(OpNum).getExpr());
lib/Target/AMDGPU/AMDGPUMCInstLower.cpp 116 const MCConstantExpr *One = MCConstantExpr::create(4, Ctx);
116 const MCConstantExpr *One = MCConstantExpr::create(4, Ctx);
158 MCConstantExpr::create(Offset, Ctx), Ctx);
244 return MCConstantExpr::create(AT.getNullPointerValue(DstAddr),
lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp 963 Sym->setVariableValue(MCConstantExpr::create(SgprIndexUnusedMin, *Ctx));
973 Sym->setVariableValue(MCConstantExpr::create(VgprIndexUnusedMin, *Ctx));
1126 Sym->setVariableValue(MCConstantExpr::create(ISA.Major, Ctx));
1128 Sym->setVariableValue(MCConstantExpr::create(ISA.Minor, Ctx));
1130 Sym->setVariableValue(MCConstantExpr::create(ISA.Stepping, Ctx));
1134 Sym->setVariableValue(MCConstantExpr::create(ISA.Major, Ctx));
1136 Sym->setVariableValue(MCConstantExpr::create(ISA.Minor, Ctx));
1138 Sym->setVariableValue(MCConstantExpr::create(ISA.Stepping, Ctx));
2284 Sym->setVariableValue(MCConstantExpr::create(0, getContext()));
2311 Sym->setVariableValue(MCConstantExpr::create(NewMax + 1, getContext()));
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp 428 EmitNote(Vendor, MCConstantExpr::create(Blob.size(), getContext()), Type,
458 EmitNote(ElfNote::NoteNameV2, MCConstantExpr::create(8, getContext()),
478 EmitNote(ElfNote::NoteNameV2, MCConstantExpr::create(DescSZ, getContext()),
526 SymbolELF->setSize(MCConstantExpr::create(Size, getContext()));
632 MCConstantExpr::create(sizeof(KernelDescriptor), Context));
lib/Target/AMDGPU/MCTargetDesc/SIMCCodeEmitter.cpp 221 const auto *C = dyn_cast<MCConstantExpr>(MO.getExpr());
221 const auto *C = dyn_cast<MCConstantExpr>(MO.getExpr());
332 if (const auto *C = dyn_cast<MCConstantExpr>(Op.getExpr()))
332 if (const auto *C = dyn_cast<MCConstantExpr>(Op.getExpr()))
lib/Target/ARC/ARCMCInstLower.cpp 71 const MCConstantExpr *OffsetExpr = MCConstantExpr::create(Offset, *Ctx);
71 const MCConstantExpr *OffsetExpr = MCConstantExpr::create(Offset, *Ctx);
lib/Target/ARC/MCTargetDesc/ARCInstPrinter.cpp 111 if (const auto *CE = dyn_cast<MCConstantExpr>(Expr)) {
111 if (const auto *CE = dyn_cast<MCConstantExpr>(Expr)) {
119 const auto *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
119 const auto *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
lib/Target/ARM/ARMAsmPrinter.cpp 921 MCConstantExpr::create(ACPV->getPCAdjustment(),
975 Expr = MCBinaryExpr::createAdd(Expr, MCConstantExpr::create(1,OutContext),
1049 MCConstantExpr::create(4, OutContext), OutContext);
1051 Expr = MCBinaryExpr::createDiv(Expr, MCConstantExpr::create(2, OutContext),
1411 MCConstantExpr::create(PCAdj, OutContext),
1444 MCConstantExpr::create(PCAdj, OutContext),
lib/Target/ARM/ARMMCInstLower.cpp 65 MCConstantExpr::create(MO.getOffset(),
lib/Target/ARM/AsmParser/ARMAsmParser.cpp 784 const MCConstantExpr *OffsetImm; // Offset immediate value
972 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
972 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
981 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
981 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm()))
992 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
992 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1007 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1007 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1022 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1022 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val)) {
1037 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val);
1037 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm.Val);
1052 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1052 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1061 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1061 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1070 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1070 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1078 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1078 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1115 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1115 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1124 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1124 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1153 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1153 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1163 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1163 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1190 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1190 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1199 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1199 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1218 if (isImm() && !isa<MCConstantExpr>(getImm()))
1223 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1223 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1233 if (isImm() && !isa<MCConstantExpr>(getImm())) {
1241 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1241 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1249 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1249 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1258 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1258 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1268 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1268 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1332 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1332 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1342 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1342 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1350 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1350 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1359 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1359 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1367 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1367 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1525 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1525 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1536 if (isImm() && !isa<MCConstantExpr>(getImm()))
1558 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1558 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1570 if (isImm() && !isa<MCConstantExpr>(getImm()))
1586 if (isImm() && !isa<MCConstantExpr>(getImm()))
1685 if (isImm() && !isa<MCConstantExpr>(getImm()))
1700 if (isImm() && !isa<MCConstantExpr>(getImm()))
1841 if (isImm() && !isa<MCConstantExpr>(getImm()))
1861 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1861 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1870 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
1870 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2104 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2104 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2118 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2118 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2128 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2128 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2140 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2140 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2150 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2150 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2175 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2175 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2231 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2231 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2240 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2240 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2248 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2248 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2262 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2262 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2271 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2271 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2280 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2280 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2326 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
2326 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
2490 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2490 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2497 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2497 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2504 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2504 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2511 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2511 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2534 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2534 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2540 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2540 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2546 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2546 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2555 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2555 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2563 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2563 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2569 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2569 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2575 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2575 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2581 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2581 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2587 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2587 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2595 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2595 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2603 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2603 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2611 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2611 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2619 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2619 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2627 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2627 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2635 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2635 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2644 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2644 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2653 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2653 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2661 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2661 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2669 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2669 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2674 if(const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) {
2674 if(const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm())) {
2685 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2685 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2747 if (!isa<MCConstantExpr>(getImm())) {
2752 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2752 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
2829 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2829 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
2881 const MCConstantExpr *CE = static_cast<const MCConstantExpr*>(getImm());
3092 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3092 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3103 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3103 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
3132 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3132 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3227 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3227 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3234 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3234 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3243 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3243 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3252 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3252 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3261 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3261 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3269 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3269 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3300 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3300 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3312 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3312 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3329 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3329 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3336 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3336 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3351 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3351 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3362 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3362 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3368 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3368 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3374 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3374 const MCConstantExpr *CE = cast<MCConstantExpr>(getImm());
3625 CreateMem(unsigned BaseRegNum, const MCConstantExpr *OffsetImm,
3999 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftExpr);
3999 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftExpr);
4078 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
4078 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(ImmVal);
4223 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
4223 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
4466 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LaneIndex);
4466 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LaneIndex);
4801 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(MemBarrierID);
4801 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(MemBarrierID);
4869 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ISBarrierID);
4869 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ISBarrierID);
5077 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5077 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5112 Operands.push_back(ARMOperand::CreateImm(MCConstantExpr::create(Val,
5159 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5159 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5221 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5221 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ShiftAmount);
5281 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm1Exp);
5281 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Imm1Exp);
5341 CE = dyn_cast<MCConstantExpr>(Imm2Exp);
5376 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LSBExpr);
5376 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(LSBExpr);
5409 CE = dyn_cast<MCConstantExpr>(WidthExpr);
5505 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5505 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5517 ARMOperand::CreateImm(MCConstantExpr::create(Val, getContext()), S, E));
5698 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
5698 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
5756 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5756 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Offset);
5764 CE = MCConstantExpr::create(std::numeric_limits<int32_t>::min(),
5879 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
5879 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr);
5955 MCConstantExpr::create(IntVal, getContext()),
5972 MCConstantExpr::create(Val, getContext()), S,
6058 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmVal);
6058 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ImmVal);
6062 ImmVal = MCConstantExpr::create(std::numeric_limits<int32_t>::min(),
6892 MCConstantExpr::create(ProcessorIMod, getContext()),
7765 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
7765 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm());
8309 const MCExpr *Const8 = MCConstantExpr::create(8, getContext());
8362 if (isa<MCConstantExpr>(SubExprVal) &&
8366 (int64_t) (cast<MCConstantExpr>(SubExprVal))->getValue();
10824 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(AttrExpr);
10824 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(AttrExpr);
10858 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr);
10858 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(ValueExpr);
11102 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11102 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11137 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11137 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11203 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
11203 const MCConstantExpr *Value = dyn_cast_or_null<MCConstantExpr>(Expr);
11308 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(IndexExpression);
11308 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(IndexExpression);
11332 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11332 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11350 const MCConstantExpr *OC = dyn_cast<MCConstantExpr>(OE);
11350 const MCConstantExpr *OC = dyn_cast<MCConstantExpr>(OE);
11419 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11419 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(OffsetExpr);
11813 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
11813 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
11819 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
11819 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
11825 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
11825 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Op.getImm()))
lib/Target/ARM/MCTargetDesc/ARMInstPrinter.cpp 330 const MCConstantExpr *Constant = cast<MCConstantExpr>(Expr);
330 const MCConstantExpr *Constant = cast<MCConstantExpr>(Expr);
lib/Target/ARM/MCTargetDesc/ARMMCCodeEmitter.cpp 1211 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(E)) {
1211 if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(E)) {
lib/Target/AVR/AVRMCInstLower.cpp 36 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/AVR/AsmParser/AVRAsmParser.cpp 140 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
140 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
167 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
167 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
173 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
173 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
702 if (MCConstantExpr const *Const = dyn_cast<MCConstantExpr>(Op.getImm())) {
702 if (MCConstantExpr const *Const = dyn_cast<MCConstantExpr>(Op.getImm())) {
lib/Target/BPF/AsmParser/BPFAsmParser.cpp 129 return isImm() && isa<MCConstantExpr>(getImm());
179 if (auto *CE = dyn_cast<MCConstantExpr>(Expr))
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp 399 MCConstantExpr::create(Extended, Context), Context);
538 MCConstantExpr::create(Value, getContext()), getContext())));
686 MCConstantExpr::create(8192 + Res, getContext()), getContext());
705 auto *MCE = cast<MCConstantExpr>(Value);
1180 Expr, MCConstantExpr::create(16, Context), Context);
1183 Expr, MCConstantExpr::create(0xffff, Context), Context);
1346 MCConstantExpr::create(1, Context), Context),
1370 MCConstantExpr::create(1, Context), Context),
1551 HexagonMCExpr::create(MCConstantExpr::create(sVal, Context), Context)));
1566 MCConstantExpr::create(s8, Context), Context))); // upper 32
1568 MCConstantExpr::create(Lo_32(Value), Context), Context);
1575 MCConstantExpr::create(0, Context), Context))); // upper 32
1623 MCConstantExpr::create(1, Context), Context),
1643 MCConstantExpr::create(2, Context), Context),
1663 MCConstantExpr::create(3, Context), Context),
1693 MCConstantExpr::create(Value * -1, Context), Context));
1720 MCConstantExpr::create(1, Context), Context),
1758 MCConstantExpr::create(1, Context), Context),
1870 MCConstantExpr::create(1, Context), Context),
1902 MCConstantExpr::create(1, Context), Context),
1916 HexagonMCExpr::create(MCConstantExpr::create(-1, Context), Context)));
1980 MCOperand::createExpr(MCConstantExpr::create(255, Context)));
lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp 282 MCOperand::createExpr(MCConstantExpr::create(-1, Context)));
286 MCOperand::createExpr(MCConstantExpr::create(-1, Context)));
452 MCOperand::createExpr(MCConstantExpr::create(-1, getContext())));
lib/Target/Hexagon/HexagonAsmPrinter.cpp 257 int32_t V = cast<MCConstantExpr>(HE->getExpr())->getValue();
258 auto *NewCE = MCConstantExpr::create(V / int32_t(VectorSize), Ctx);
291 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
291 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
298 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
298 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
305 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
305 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
312 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
312 const MCConstantExpr *Zero = MCConstantExpr::create(0, OutContext);
319 const MCConstantExpr *C255 = MCConstantExpr::create(255, OutContext);
319 const MCConstantExpr *C255 = MCConstantExpr::create(255, OutContext);
442 const MCExpr *One = MCConstantExpr::create(1, OutContext);
478 const MCExpr *One = MCConstantExpr::create(1, OutContext);
505 const MCExpr *One = MCConstantExpr::create(1, OutContext);
524 const MCExpr *MOne = MCConstantExpr::create(-1, OutContext);
528 const MCExpr *Zero = MCConstantExpr::create(0, OutContext);
lib/Target/Hexagon/HexagonMCInstLower.cpp 88 ME = MCBinaryExpr::createAdd(ME, MCConstantExpr::create(MO.getOffset(), MC),
134 MCConstantExpr::create(*Val.bitcastToAPInt().getRawData(),
143 MCConstantExpr::create(MO.getImm(), AP.OutContext), AP.OutContext);
lib/Target/Hexagon/MCTargetDesc/HexagonMCCodeEmitter.cpp 707 const MCExpr *C = MCConstantExpr::create(State.Addend, MCT);
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp 136 ELFSymbol->setSize(MCConstantExpr::create(Size, getContext()));
lib/Target/Hexagon/MCTargetDesc/HexagonMCInstrInfo.cpp 83 MI.addOperand(MCOperand::createExpr(MCConstantExpr::create(Value, Context)));
lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp 213 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm.Value);
213 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Imm.Value);
230 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
230 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
252 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
252 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
266 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
266 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
290 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
290 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
313 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
313 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
326 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
326 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
338 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
338 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value)) {
368 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
368 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
379 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
379 const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Imm.Value);
393 else if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Expr))
393 else if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Expr))
466 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
466 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
490 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
490 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
498 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
498 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
521 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
521 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
529 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
529 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(getImm()))
845 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Op.getImm())) {
845 if (const MCConstantExpr *ConstExpr = dyn_cast<MCConstantExpr>(Op.getImm())) {
955 const MCConstantExpr *OffsetConstExpr =
956 MCConstantExpr::create(OffsetValue, getContext());
1059 MCConstantExpr::create(CondCode, getContext()), NameLoc, NameLoc));
1088 MCConstantExpr::create(CondCode, getContext()), NameLoc, NameLoc));
1129 if (const MCConstantExpr *ConstExpr =
1130 dyn_cast<MCConstantExpr>(PossibleAluOp->getImm()))
1181 MCConstantExpr::create(LPCC::ICC_T, getContext()),
1216 MCConstantExpr::create(LPCC::ICC_T, getContext()),
lib/Target/Lanai/LanaiMCInstLower.cpp 88 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/MSP430/AsmParser/MSP430AsmParser.cpp 136 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
136 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
342 const MCExpr *CCode = MCConstantExpr::create(CondCode, getContext());
502 MCConstantExpr::create(0, getContext()), StartLoc, EndLoc));
lib/Target/MSP430/MSP430MCInstLower.cpp 107 MCConstantExpr::create(MO.getOffset(), Ctx),
lib/Target/Mips/AsmParser/MipsAsmParser.cpp 1012 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
1012 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
1294 return isMem() && isa<MCConstantExpr>(getMemOff());
2922 MCOperand::createExpr(MCConstantExpr::create(
2948 LoExpr = MCConstantExpr::create(Res.getConstant(), getContext());
2980 LoExpr = MCConstantExpr::create(Res.getConstant(), getContext());
6219 IdVal = MCConstantExpr::create(0, getContext());
6231 IdVal = MCConstantExpr::create(Imm, getContext());
6447 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(IdVal);
6447 const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(IdVal);
6453 MCConstantExpr::create(0 - Val, getContext()), S, E, *this));
lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp 248 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
270 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
293 MO.getExpr(), MCConstantExpr::create(-2, Ctx), Ctx);
316 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
402 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
424 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
446 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
468 MO.getExpr(), MCConstantExpr::create(-4, Ctx), Ctx);
599 return cast<MCConstantExpr>(Expr)->getValue();
lib/Target/Mips/MipsMCInstLower.cpp 167 Expr = MCBinaryExpr::createAdd(Expr, MCConstantExpr::create(Offset, *Ctx),
lib/Target/Mips/MipsTargetObjectFile.cpp 193 Expr, MCConstantExpr::create(0x8000, getContext()), getContext());
lib/Target/NVPTX/NVPTXAsmPrinter.cpp 1975 return MCConstantExpr::create(0, Ctx);
1978 return MCConstantExpr::create(CI->getZExtValue(), Ctx);
2041 return MCBinaryExpr::createAdd(Base, MCConstantExpr::create(Offset, Ctx),
2084 const MCExpr *MaskExpr = MCConstantExpr::create(~0ULL >> (64-InBits), Ctx);
2107 OS << cast<MCConstantExpr>(Expr).getValue();
2133 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS()) ||
2145 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) {
2145 if (const MCConstantExpr *RHSC = dyn_cast<MCConstantExpr>(BE.getRHS())) {
2158 if (isa<MCConstantExpr>(BE.getRHS()) || isa<MCSymbolRefExpr>(BE.getRHS())) {
lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp 45 int64_t Res = cast<MCConstantExpr>(E)->getValue();
652 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Val))
652 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Val))
1655 if (const auto *MCE = dyn_cast<MCConstantExpr>(Value)) {
1655 if (const auto *MCE = dyn_cast<MCConstantExpr>(Value)) {
lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp 473 const MCConstantExpr *ConstExp = nullptr;
476 ConstExp = cast<MCConstantExpr>(BinExpr->getRHS());
lib/Target/PowerPC/PPCAsmPrinter.cpp 503 TlsRef, MCConstantExpr::create(32768, OutContext), OutContext);
593 MCConstantExpr::create(4, OutContext),
854 MCConstantExpr::create(MO.getOffset(),
1350 MCConstantExpr::create(0x8000, OutContext),
lib/Target/PowerPC/PPCMCInstLower.cpp 122 MCBinaryExpr::createAdd(Expr, MCConstantExpr::create(32768, Ctx), Ctx);
126 MCConstantExpr::create(MO.getOffset(), Ctx),
lib/Target/PowerPC/PPCTargetObjectFile.cpp 55 MCConstantExpr::create(0x8000, getContext()),
lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp 268 if (auto CE = dyn_cast<MCConstantExpr>(Expr)) {
1046 auto *CE = dyn_cast<MCConstantExpr>(Res);
1321 RISCVOperand::createImm(MCConstantExpr::create(ImmVal, getContext()),
1447 if (isa<MCConstantExpr>(Expr) || isa<MCSymbolRefExpr>(Expr))
1468 auto AddendExpr = dyn_cast<MCConstantExpr>(BE->getRHS());
lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp 350 const MCExpr *Dummy = MCConstantExpr::create(0, Ctx);
lib/Target/RISCV/MCTargetDesc/RISCVMCCodeEmitter.cpp 162 const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
162 const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
361 const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
361 const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
lib/Target/RISCV/RISCVMCInstLower.cpp 82 ME, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/Sparc/AsmParser/SparcAsmParser.cpp 348 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
348 else if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
533 ValExpr = MCConstantExpr::create(ImmValue, getContext());
795 EVal = MCConstantExpr::create(ImmVal, getContext());
lib/Target/Sparc/SparcAsmPrinter.cpp 196 MCOperand imm = MCOperand::createExpr(MCConstantExpr::create(12,
208 MCOperand imm = MCOperand::createExpr(MCConstantExpr::create(32,
lib/Target/SystemZ/AsmParser/SystemZAsmParser.cpp 42 if (auto *CE = dyn_cast<MCConstantExpr>(Expr)) {
145 else if (auto *CE = dyn_cast<MCConstantExpr>(Expr))
640 if (auto *CE = dyn_cast<MCConstantExpr>(E))
674 OS << "Mem:" << *cast<MCConstantExpr>(Op.Disp);
678 OS << *cast<MCConstantExpr>(Op.Length.Imm) << ",";
783 if (auto *CE = dyn_cast<MCConstantExpr>(Register)) {
1309 if (auto *CE = dyn_cast<MCConstantExpr>(Expr)) {
lib/Target/SystemZ/MCTargetDesc/SystemZMCCodeEmitter.cpp 277 Expr = MCConstantExpr::create(MO.getImm() + Offset, Ctx);
285 const MCExpr *OffsetExpr = MCConstantExpr::create(Offset, Ctx);
lib/Target/SystemZ/SystemZAsmPrinter.cpp 483 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext);
483 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext);
496 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext);
496 const MCConstantExpr *ConstExpr = MCConstantExpr::create(2, OutContext);
lib/Target/SystemZ/SystemZMCInstLower.cpp 73 const MCExpr *OffsetExpr = MCConstantExpr::create(Offset, Ctx);
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp 140 MCConstantExpr::create(Size, OutContext));
lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp 160 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/X86/AsmParser/X86AsmParser.cpp 604 if (auto *CE = dyn_cast<MCConstantExpr>(SymRef))
1220 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1229 const MCExpr *Disp = MCConstantExpr::create(0, getContext());
1696 MCConstantExpr::create(rndMode, Parser.getContext());
1899 const MCExpr *ImmDisp = MCConstantExpr::create(Imm, getContext());
2219 Disp = MCConstantExpr::create(0, Parser.getContext());
2315 isa<MCConstantExpr>(Disp) && cast<MCConstantExpr>(Disp)->getValue() == 0)
2315 isa<MCConstantExpr>(Disp) && cast<MCConstantExpr>(Disp)->getValue() == 0)
2622 const MCExpr *ImmOp = MCConstantExpr::create(ComparisonPredicate,
2663 const MCExpr *ImmOp = MCConstantExpr::create(ComparisonPredicate,
2834 if (Op1.isImm() && isa<MCConstantExpr>(Op1.getImm()) &&
2835 cast<MCConstantExpr>(Op1.getImm())->getValue() == 1)
2839 if (Op1.isImm() && isa<MCConstantExpr>(Op1.getImm()) &&
2840 cast<MCConstantExpr>(Op1.getImm())->getValue() == 1)
2850 if (auto *CE = dyn_cast<MCConstantExpr>(Op1.getImm()))
3405 const auto *CE = dyn_cast<MCConstantExpr>(X86Op->getImm());
3405 const auto *CE = dyn_cast<MCConstantExpr>(X86Op->getImm());
lib/Target/X86/AsmParser/X86Operand.h 102 if (auto Imm = cast<MCConstantExpr>(Val)->getValue())
212 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
212 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
226 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
226 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
240 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
240 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
254 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
254 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
267 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
267 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
276 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
276 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
378 getMemBaseReg() == X86::SI) && isa<MCConstantExpr>(getMemDisp()) &&
379 cast<MCConstantExpr>(getMemDisp())->getValue() == 0;
398 getMemBaseReg() == X86::DI) && isa<MCConstantExpr>(getMemDisp()) &&
399 cast<MCConstantExpr>(getMemDisp())->getValue() == 0;
490 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
490 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(Expr))
555 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemDisp()))
555 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemDisp()))
575 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemDisp()))
575 if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getMemDisp()))
lib/Target/X86/MCTargetDesc/X86InstPrinterCommon.cpp 303 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr());
303 const MCConstantExpr *BranchTarget = dyn_cast<MCConstantExpr>(Op.getExpr());
lib/Target/X86/MCTargetDesc/X86MCAsmInfo.cpp 118 const MCExpr *Four = MCConstantExpr::create(4, Context);
lib/Target/X86/MCTargetDesc/X86MCCodeEmitter.cpp 312 Expr = MCConstantExpr::create(DispOp.getImm(), Ctx);
368 Expr = MCBinaryExpr::createAdd(Expr, MCConstantExpr::create(ImmOffset, Ctx),
lib/Target/X86/X86AsmPrinter.cpp 622 S, MCConstantExpr::create(Feat00Flags, MMI->getContext()));
lib/Target/X86/X86MCInstLower.cpp 286 Expr, MCConstantExpr::create(MO.getOffset(), Ctx), Ctx);
lib/Target/X86/X86TargetObjectFile.cpp 35 const MCExpr *Four = MCConstantExpr::create(4, getContext());
58 const MCExpr *Off = MCConstantExpr::create(FinalOff, getContext());
lib/Target/XCore/MCTargetDesc/XCoreInstPrinter.cpp 56 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
56 const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(BE->getRHS());
lib/Target/XCore/XCoreAsmPrinter.cpp 98 MCConstantExpr::create(ATy->getNumElements(),
154 OutStreamer->emitELFSize(GVSym, MCConstantExpr::create(Size, OutContext));
lib/Target/XCore/XCoreMCInstLower.cpp 72 const MCConstantExpr *OffsetExpr = MCConstantExpr::create(Offset, *Ctx);
72 const MCConstantExpr *OffsetExpr = MCConstantExpr::create(Offset, *Ctx);