class LLParser::PerFunctionState

Declaration

class LLParser::PerFunctionState { /* full declaration omitted */ };

Declared at: llvm/lib/AsmParser/LLParser.h:413

Method Overview

  • public llvm::BasicBlock * DefineBB(const std::string & Name, int NameID, llvm::LLParser::LocTy Loc)
  • public bool FinishFunction()
  • public llvm::BasicBlock * GetBB(const std::string & Name, llvm::LLParser::LocTy Loc)
  • public llvm::BasicBlock * GetBB(unsigned int ID, llvm::LLParser::LocTy Loc)
  • public llvm::Value * GetVal(const std::string & Name, llvm::Type * Ty, llvm::LLParser::LocTy Loc, bool IsCall)
  • public llvm::Value * GetVal(unsigned int ID, llvm::Type * Ty, llvm::LLParser::LocTy Loc, bool IsCall)
  • public PerFunctionState(llvm::LLParser & p, llvm::Function & f, int functionNumber)
  • public bool SetInstName(int NameID, const std::string & NameStr, llvm::LLParser::LocTy NameLoc, llvm::Instruction * Inst)
  • public llvm::Function & getFunction() const
  • public bool resolveForwardRefBlockAddresses()
  • public ~PerFunctionState()

Methods

llvm::BasicBlock* DefineBB(
    const std::string& Name,
    int NameID,
    llvm::LLParser::LocTy Loc)

Description

DefineBB - Define the specified basic block, which is either named or unnamed. If there is an error, this returns null otherwise it returns the block being defined.

Declared at: llvm/lib/AsmParser/LLParser.h:451

Parameters

const std::string& Name
int NameID
llvm::LLParser::LocTy Loc

bool FinishFunction()

Declared at: llvm/lib/AsmParser/LLParser.h:429

llvm::BasicBlock* GetBB(const std::string& Name,
                        llvm::LLParser::LocTy Loc)

Description

GetBB - Get a basic block with the specified name or ID, creating a forward reference record if needed. This can return null if the value is not a BasicBlock.

Declared at: llvm/lib/AsmParser/LLParser.h:445

Parameters

const std::string& Name
llvm::LLParser::LocTy Loc

llvm::BasicBlock* GetBB(unsigned int ID,
                        llvm::LLParser::LocTy Loc)

Declared at: llvm/lib/AsmParser/LLParser.h:446

Parameters

unsigned int ID
llvm::LLParser::LocTy Loc

llvm::Value* GetVal(const std::string& Name,
                    llvm::Type* Ty,
                    llvm::LLParser::LocTy Loc,
                    bool IsCall)

Description

GetVal - Get a value with the specified name or ID, creating a forward reference record if needed. This can return null if the value exists but does not have the right type.

Declared at: llvm/lib/AsmParser/LLParser.h:434

Parameters

const std::string& Name
llvm::Type* Ty
llvm::LLParser::LocTy Loc
bool IsCall

llvm::Value* GetVal(unsigned int ID,
                    llvm::Type* Ty,
                    llvm::LLParser::LocTy Loc,
                    bool IsCall)

Declared at: llvm/lib/AsmParser/LLParser.h:435

Parameters

unsigned int ID
llvm::Type* Ty
llvm::LLParser::LocTy Loc
bool IsCall

PerFunctionState(llvm::LLParser& p,
                 llvm::Function& f,
                 int functionNumber)

Declared at: llvm/lib/AsmParser/LLParser.h:424

Parameters

llvm::LLParser& p
llvm::Function& f
int functionNumber

bool SetInstName(int NameID,
                 const std::string& NameStr,
                 llvm::LLParser::LocTy NameLoc,
                 llvm::Instruction* Inst)

Description

SetInstName - After an instruction is parsed and inserted into its basic block, this installs its name.

Declared at: llvm/lib/AsmParser/LLParser.h:439

Parameters

int NameID
const std::string& NameStr
llvm::LLParser::LocTy NameLoc
llvm::Instruction* Inst

llvm::Function& getFunction() const

Declared at: llvm/lib/AsmParser/LLParser.h:427

bool resolveForwardRefBlockAddresses()

Declared at: llvm/lib/AsmParser/LLParser.h:453

~PerFunctionState()

Declared at: llvm/lib/AsmParser/LLParser.h:425