39 assert(MO.
isSymbol() &&
"Isn't a symbol reference");
44 bool isImplicitlyPrivate =
false;
47 isImplicitlyPrivate =
true;
86 Name +=
"$non_lazy_ptr";
96 assert(MO.
isGlobal() &&
"Extern symbol not handled yet");
176 assert(!MO.
getSubReg() &&
"Subregs should be eliminated!");
static const PPCMCExpr * CreateHa(const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
PointerIntPair< MCSymbol *, 1, bool > StubValueTy
StubValueTy & getHiddenGVStubEntry(MCSymbol *Sym)
const MachineFunction * getParent() const
MachineInstr * getParent()
const GlobalValue * getGlobal() const
MCSymbol * getSymbol(const GlobalValue *GV) const
static MCOperand CreateReg(unsigned Reg)
MachineBasicBlock * getMBB() const
static const MCConstantExpr * Create(int64_t Value, MCContext &Ctx)
static MachineModuleInfoMachO & getMachOMMI(AsmPrinter &AP)
void getNameWithPrefix(SmallVectorImpl< char > &OutName, const GlobalValue *GV, bool isImplicitlyPrivate, bool UseGlobalPrefix=true)
MO_LO, MO_HA - lo16(symbol) and ha16(symbol)
const char * getPrivateGlobalPrefix() const
static MCOperand CreateExpr(const MCExpr *Val)
const char * getSymbolName() const
print alias Alias Set Printer
Address of indexed Jump Table for switch.
static const PPCMCExpr * CreateLo(const MCExpr *Expr, bool isDarwin, MCContext &Ctx)
bool isJTI() const
isJTI - Tests if this is a MO_JumpTableIndex operand.
int access(const char *path, int amode);
MCSymbol * GetOrCreateSymbol(StringRef Name)
#define llvm_unreachable(msg)
bool hasInternalLinkage() const
MCSymbol * GetJTISymbol(unsigned JTID, bool isLinkerPrivate=false) const
GetJTISymbol - Return the symbol for the specified jump table entry.
static const MCBinaryExpr * CreateSub(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
unsigned getNumOperands() const
bool isGlobal() const
isGlobal - Tests if this is a MO_GlobalAddress operand.
Address of indexed Constant in Constant Pool.
MachineModuleInfo * MMI
MMI - This is a pointer to the current MachineModuleInfo.
const MachineBasicBlock * getParent() const
static const MCSymbolRefExpr * Create(const MCSymbol *Symbol, MCContext &Ctx)
unsigned getTargetFlags() const
const MachineOperand & getOperand(unsigned i) const
bool isSymbol() const
isSymbol - Tests if this is a MO_ExternalSymbol operand.
int64_t getOffset() const
bool startswith(StringRef Prefix) const
startswith - Check if this string starts with the given Prefix.
unsigned getSubReg() const
iterator erase(iterator I)
MCSymbol * getSymbol() const
StubValueTy & getGVStubEntry(MCSymbol *Sym)
The next are not flags but distinct values.
PointerTy getPointer() const
void setOpcode(unsigned Op)
static MCOperand GetSymbolRef(const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &Printer, bool isDarwin)
MCSymbol * getPICBaseSymbol() const
const char * getGlobalPrefix() const
StubValueTy & getFnStubEntry(MCSymbol *Sym)
StringRef str() const
Explicit conversion to StringRef.
static const MCBinaryExpr * CreateAdd(const MCExpr *LHS, const MCExpr *RHS, MCContext &Ctx)
MachineOperandType getType() const
static MCOperand CreateImm(int64_t Val)
MCSymbol * GetBlockAddressSymbol(const BlockAddress *BA) const
Mask of preserved registers.
MCSymbol * GetCPISymbol(unsigned CPID) const
GetCPISymbol - Return the symbol for the specified constant pool entry.
unsigned getReg() const
getReg - Returns the register number.
Address of a basic block.
void LowerPPCMachineInstrToMCInst(const MachineInstr *MI, MCInst &OutMI, AsmPrinter &AP, bool isDarwin)
void addOperand(const MCOperand &Op)
const BlockAddress * getBlockAddress() const
static MCSymbol * GetSymbolFromOperand(const MachineOperand &MO, AsmPrinter &AP)
MachineBasicBlock reference.
Address of a global value.
Name of external global symbol.