LLVM: lib/CodeGen/MIRParser/MIParser.cpp File Reference (original) (raw)
Go to the source code of this file.
| Functions |
|
| static void |
mapValueToSlot (const Value *V, ModuleSlotTracker &MST, DenseMap< unsigned, const Value * > &Slots2Values) |
| static void |
initSlots2Values (const Function &F, DenseMap< unsigned, const Value * > &Slots2Values) |
|
Creates the mapping from slot numbers to function's unnamed IR values. |
| static const char * |
toString (MIToken::TokenKind TokenKind) |
| static const char * |
printImplicitRegisterFlag (const MachineOperand &MO) |
| static std::string |
getRegisterName (const TargetRegisterInfo *TRI, Register Reg) |
| static bool |
isImplicitOperandIn (const MachineOperand &ImplicitOperand, ArrayRef< ParsedMachineOperand > Operands) |
|
Return true if the parsed machine operands contain a given machine operand. |
| static bool |
parseIRConstant (StringRef::iterator Loc, StringRef StringValue, PerFunctionMIParsingState &PFS, const Constant *&C, ErrorCallbackType ErrCB) |
| static bool |
verifyScalarSize (uint64_t Size) |
| static bool |
verifyVectorElementCount (uint64_t NumElts) |
| static bool |
verifyAddrSpace (uint64_t AddrSpace) |
| static bool |
getHexUint (const MIToken &Token, APInt &Result) |
| static bool |
getUnsigned (const MIToken &Token, unsigned &Result, ErrorCallbackType ErrCB) |
| static bool |
parseGlobalValue (const MIToken &Token, PerFunctionMIParsingState &PFS, GlobalValue *&GV, ErrorCallbackType ErrCB) |
| static bool |
parseIRValue (const MIToken &Token, PerFunctionMIParsingState &PFS, const Value *&V, ErrorCallbackType ErrCB) |
| static void |
initSlots2BasicBlocks (const Function &F, DenseMap< unsigned, const BasicBlock * > &Slots2BasicBlocks) |
| static const BasicBlock * |
getIRBlockFromSlot (unsigned Slot, const DenseMap< unsigned, const BasicBlock * > &Slots2BasicBlocks) |
◆ ErrorCallbackType
◆ getHexUint()
◆ getIRBlockFromSlot()
◆ getRegisterName()
◆ getUnsigned()
◆ initSlots2BasicBlocks()
◆ initSlots2Values()
◆ isImplicitOperandIn()
◆ mapValueToSlot()
◆ parseGlobalValue()
Definition at line 2203 of file MIParser.cpp.
References llvm::MachineFunction::getFunction(), llvm::GlobalValue::getParent(), getUnsigned(), llvm::MIToken::GlobalValue, llvm::SlotMapping::GlobalValues, llvm::PerFunctionMIParsingState::IRSlots, llvm::MIToken::kind(), llvm_unreachable, llvm::MIToken::location(), llvm::PerFunctionMIParsingState::MF, llvm::MIToken::NamedGlobalValue, llvm::MIToken::range(), and llvm::MIToken::stringValue().
Referenced by parseIRValue().
◆ parseIRConstant()
◆ parseIRValue()
Definition at line 3159 of file MIParser.cpp.
References llvm::CallingConv::C, llvm::MachineFunction::getFunction(), llvm::PerFunctionMIParsingState::getIRValue(), getUnsigned(), llvm::Function::getValueSymbolTable(), llvm::MIToken::GlobalValue, llvm::MIToken::IRValue, llvm::MIToken::kind(), llvm::MIToken::kw_unknown_address, llvm_unreachable, llvm::MIToken::location(), llvm::ValueSymbolTable::lookup(), llvm::PerFunctionMIParsingState::MF, llvm::MIToken::NamedGlobalValue, llvm::MIToken::NamedIRValue, parseGlobalValue(), parseIRConstant(), llvm::MIToken::QuotedIRValue, llvm::MIToken::range(), and llvm::MIToken::stringValue().
◆ printImplicitRegisterFlag()
◆ toString()
◆ verifyAddrSpace()
◆ verifyScalarSize()
◆ verifyVectorElementCount()