Documentation for microsoft::quantum::InstructionLocationTable

microsoft::quantum::InstructionLocationTable

Inherits from llvm::AssemblyAnnotationWriter

Public Types

Name
using SourceLocation Position
using llvm::StringRef StringRef
using llvm::BasicBlock BasicBlock
using llvm::Function Function
using llvm::Value Value
using llvm::Module Module
using std::unordered_map< Value const *, Position > Positions
using std::unordered_map< String, Position > FunctionPositions
using std::shared_ptr< InstructionLocationTable > InstructionLocationTablePtr

Public Functions

Name
InstructionLocationTablePtr create()
Pointer constructor for the debug table.
Position getPosition(Value const * value) const
Gets the position of a LLVM value.
Position getPositionFromFunctionName(String const & name) const
Gets the position from a function name.
void registerModule(StringRef const & filename, Module const * module)
Registers a module in debug table.

Protected Functions

Name
void printInfoComment(Value const & value, llvm::formatted_raw_ostream & outstream) override
void emitBasicBlockStartAnnot(BasicBlock const * block, llvm::formatted_raw_ostream & outstream) override
void emitFunctionAnnot(Function const * function, llvm::formatted_raw_ostream & outstream) override

Public Types Documentation

using Position

using microsoft::quantum::InstructionLocationTable::Position =  SourceLocation;

using StringRef

using microsoft::quantum::InstructionLocationTable::StringRef =  llvm::StringRef;

using BasicBlock

using microsoft::quantum::InstructionLocationTable::BasicBlock =  llvm::BasicBlock;

using Function

using microsoft::quantum::InstructionLocationTable::Function =  llvm::Function;

using Value

using microsoft::quantum::InstructionLocationTable::Value =  llvm::Value;

using Module

using microsoft::quantum::InstructionLocationTable::Module =  llvm::Module;

using Positions

using microsoft::quantum::InstructionLocationTable::Positions =  std::unordered_map<Value const*, Position>;

using FunctionPositions

using microsoft::quantum::InstructionLocationTable::FunctionPositions =  std::unordered_map<String, Position>;

using InstructionLocationTablePtr

using microsoft::quantum::InstructionLocationTable::InstructionLocationTablePtr =  std::shared_ptr<InstructionLocationTable>;

Public Functions Documentation

function create

static InstructionLocationTablePtr create()

Pointer constructor for the debug table.

function getPosition

Position getPosition(
    Value const * value
) const

Gets the position of a LLVM value.

function getPositionFromFunctionName

Position getPositionFromFunctionName(
    String const & name
) const

Gets the position from a function name.

function registerModule

void registerModule(
    StringRef const & filename,
    Module const * module
)

Registers a module in debug table.

Protected Functions Documentation

function printInfoComment

void printInfoComment(
    Value const & value,
    llvm::formatted_raw_ostream & outstream
) override

function emitBasicBlockStartAnnot

void emitBasicBlockStartAnnot(
    BasicBlock const * block,
    llvm::formatted_raw_ostream & outstream
) override

function emitFunctionAnnot

void emitFunctionAnnot(
    Function const * function,
    llvm::formatted_raw_ostream & outstream
) override

Updated on 1 August 2023 at 16:25:10 UTC