|
LLVM
3.7.0
|
Binary assembler expressions. More...
#include <MCExpr.h>
Public Types | |
| enum | Opcode { Add, And, Div, EQ, GT, GTE, LAnd, LOr, LT, LTE, Mod, Mul, NE, Or, Shl, AShr, LShr, Sub, Xor } |
Public Types inherited from llvm::MCExpr | |
| enum | ExprKind { Binary, Constant, SymbolRef, Unary, Target } |
Public Member Functions | |
Accessors | |
| Opcode | getOpcode () const |
| Get the kind of this binary expression. More... | |
| const MCExpr * | getLHS () const |
| Get the left-hand side expression of the binary operator. More... | |
| const MCExpr * | getRHS () const |
| Get the right-hand side expression of the binary operator. More... | |
Public Member Functions inherited from llvm::MCExpr | |
| ExprKind | getKind () const |
| void | print (raw_ostream &OS, const MCAsmInfo *MAI) const |
| void | dump () const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout, const SectionAddrMap &Addrs) const |
| Try to evaluate the expression to an absolute value. More... | |
| bool | evaluateAsAbsolute (int64_t &Res) const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAssembler &Asm) const |
| bool | evaluateAsAbsolute (int64_t &Res, const MCAsmLayout &Layout) const |
| bool | evaluateKnownAbsolute (int64_t &Res, const MCAsmLayout &Layout) const |
| bool | evaluateAsRelocatable (MCValue &Res, const MCAsmLayout *Layout, const MCFixup *Fixup) const |
| Try to evaluate the expression to a relocatable value, i.e. More... | |
| bool | evaluateAsValue (MCValue &Res, const MCAsmLayout &Layout) const |
| Try to evaluate the expression to the form (a - b + constant) where neither a nor b are variables. More... | |
| MCSection * | findAssociatedSection () const |
| Find the "associated section" for this expression, which is currently defined as the absolute section for constants, or otherwise the section associated with the first defined symbol in the expression. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from llvm::MCExpr | |
| MCExpr (ExprKind Kind) | |
| bool | evaluateAsRelocatableImpl (MCValue &Res, const MCAssembler *Asm, const MCAsmLayout *Layout, const MCFixup *Fixup, const SectionAddrMap *Addrs, bool InSet) const |
Definition at line 538 of file MCExpr.h.
References llvm::MCExpr::Binary, and llvm::MCExpr::getKind().
|
static |
Definition at line 140 of file MCExpr.cpp.
Referenced by buildSymbolDiff(), createAdd(), createAnd(), createAShr(), createDiv(), createEQ(), createGT(), createGTE(), createLAnd(), createLOr(), createLShr(), createLT(), createLTE(), createMod(), createMul(), createNE(), createOr(), createShl(), createSub(), createXor(), llvm::EmitLabelDiff(), llvm::MCObjectStreamer::EmitValueToOffset(), and MakeStartMinusEndExpr().
|
inlinestatic |
Definition at line 446 of file MCExpr.h.
Referenced by createPCXRelExprOp(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::AsmPrinter::EmitLabelPlusOffset(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::EmitSymbolRefWithOfs(), llvm::SystemZMCInstLower::getExpr(), llvm::X86_64MCAsmInfoDarwin::getExprForPersonalitySymbol(), llvm::X86_64MachoTargetObjectFile::getIndirectSymViaGOTPCRel(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), GetSymbolRef(), llvm::X86_64MachoTargetObjectFile::getTTypeGlobalReference(), llvm::AsmPrinter::lowerConstant(), llvm::MSP430MCInstLower::LowerSymbolOperand(), llvm::AArch64MCInstLower::lowerSymbolOperandDarwin(), llvm::AArch64MCInstLower::lowerSymbolOperandELF(), llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand(), and llvm::MCExternalSymbolizer::tryAddingSymbolicOperand().
|
inlinestatic |
Definition at line 450 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 454 of file MCExpr.h.
Referenced by llvm::ARMAsmPrinter::EmitJumpTableTBInst(), and llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 486 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 490 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 498 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 502 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
|
inlinestatic |
Definition at line 514 of file MCExpr.h.
Referenced by addNegOperand(), createPCXRelExprOp(), llvm::EmitAbsDifference(), llvm::MCStreamer::emitAbsoluteSymbolDiff(), llvm::AsmPrinter::EmitFunctionBody(), llvm::ARMAsmPrinter::EmitInstruction(), llvm::X86AsmPrinter::EmitInstruction(), llvm::ARMAsmPrinter::EmitJumpTableAddrs(), llvm::AsmPrinter::EmitJumpTableInfo(), llvm::ARMAsmPrinter::EmitJumpTableTBInst(), llvm::ARMAsmPrinter::EmitMachineConstantPoolValue(), llvm::EmitSymbolRefWithOfs(), llvm::MCAsmInfo::getExprForFDESymbol(), llvm::AArch64MCAsmInfoDarwin::getExprForPersonalitySymbol(), llvm::AArch64_MachoTargetObjectFile::getIndirectSymViaGOTPCRel(), llvm::TargetLoweringObjectFileMachO::getIndirectSymViaGOTPCRel(), GetSymbolRef(), llvm::AArch64_MachoTargetObjectFile::getTTypeGlobalReference(), llvm::TargetLoweringObjectFile::getTTypeReference(), llvm::AsmPrinter::lowerConstant(), llvm::FaultMaps::recordFaultingOp(), llvm::AArch64ExternalSymbolizer::tryAddingSymbolicOperand(), and llvm::MCExternalSymbolizer::tryAddingSymbolicOperand().
|
inlinestatic |
Definition at line 518 of file MCExpr.h.
Referenced by llvm::AsmPrinter::lowerConstant().
Get the left-hand side expression of the binary operator.
Definition at line 531 of file MCExpr.h.
Referenced by llvm::MCExpr::evaluateAsRelocatableImpl(), EvaluateCRExpr(), llvm::MCExpr::findAssociatedSection(), fixELFSymbolsInTLSFixupsImpl(), hasGOTReference(), llvm::MipsMCExpr::isSupportedBinaryExpr(), llvm::MCParserUtils::isSymbolUsedInExpression(), llvm::MCExpr::print(), StartsWithGlobalOffsetTable(), and llvm::MCStreamer::visitUsedExpr().
|
inline |
Get the kind of this binary expression.
Definition at line 528 of file MCExpr.h.
Referenced by llvm::MCExpr::evaluateAsRelocatableImpl(), EvaluateCRExpr(), llvm::MCExpr::findAssociatedSection(), and llvm::MCExpr::print().
Get the right-hand side expression of the binary operator.
Definition at line 534 of file MCExpr.h.
Referenced by llvm::MCExpr::evaluateAsRelocatableImpl(), EvaluateCRExpr(), llvm::MCExpr::findAssociatedSection(), fixELFSymbolsInTLSFixupsImpl(), hasGOTReference(), llvm::MipsMCExpr::isSupportedBinaryExpr(), llvm::MCParserUtils::isSymbolUsedInExpression(), llvm::MCExpr::print(), StartsWithGlobalOffsetTable(), and llvm::MCStreamer::visitUsedExpr().
1.8.6