XACC
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
xacc::XASMListener Class Reference
Inheritance diagram for xacc::XASMListener:

Public Member Functions

std::vector< std::string > getBufferNames ()
 
std::shared_ptr< CompositeInstructiongetFunction ()
 
void enterXacckernel (xasmParser::XacckernelContext *) override
 
void enterXacclambda (xasmParser::XacclambdaContext *) override
 
void enterInstruction (xasmParser::InstructionContext *) override
 
void enterBufferList (xasmParser::BufferListContext *) override
 
void enterParamList (xasmParser::ParamListContext *) override
 
void exitInstruction (xasmParser::InstructionContext *) override
 
void enterComposite_generator (xasmParser::Composite_generatorContext *) override
 
void enterOptionsType (xasmParser::OptionsTypeContext *) override
 
void exitComposite_generator (xasmParser::Composite_generatorContext *) override
 
void enterForstmt (xasmParser::ForstmtContext *) override
 
void exitForstmt (xasmParser::ForstmtContext *) override
 
void enterIfstmt (xasmParser::IfstmtContext *) override
 
void exitIfstmt (xasmParser::IfstmtContext *) override
 

Public Attributes

HeterogeneousMap runtimeOptions
 

Protected Member Functions

void for_stmt_update_inst_args (Instruction *inst)
 
std::vector< std::size_t > for_stmt_update_bits (Instruction *inst, const std::string varName, const int value)
 
std::vector< InstructionParameterfor_stmt_update_params (Instruction *inst, const std::string varName, const int value)
 
template<typename T >
void createForInstructions (xasmParser::ForstmtContext *ctx, std::vector< InstPtr > &instructions, std::shared_ptr< CompositeInstruction > function)
 
template<>
void createForInstructions (xasmParser::ForstmtContext *ctx, std::vector< InstPtr > &instructions, std::shared_ptr< CompositeInstruction > function)
 
template<>
void createForInstructions (xasmParser::ForstmtContext *ctx, std::vector< InstPtr > &instructions, std::shared_ptr< CompositeInstruction > function)
 
template<>
void createForInstructions (xasmParser::ForstmtContext *ctx, std::vector< InstPtr > &instructions, std::shared_ptr< CompositeInstruction > function)
 
template<>
void createForInstructions (xasmParser::ForstmtContext *ctx, std::vector< InstPtr > &instructions, std::shared_ptr< CompositeInstruction > function)
 

Protected Attributes

std::shared_ptr< IRProviderirProvider
 
std::shared_ptr< CompositeInstructionfunction
 
std::shared_ptr< CompositeInstructionfor_function
 
std::shared_ptr< CompositeInstructionif_stmt
 
std::string bufferName = ""
 
bool inForLoop = false
 
bool inIfStmt = false
 
std::vector< std::string > functionBufferNames
 
std::string currentInstructionName
 
std::vector< std::size_t > currentBits
 
std::vector< std::string > currentBufferNames
 
std::vector< InstructionParametercurrentParameters
 
std::map< int, std::string > currentBitIdxExpressions
 
std::map< std::string, int > new_var_to_vector_idx
 
std::string currentCompositeName
 
HeterogeneousMap currentOptions
 
std::shared_ptr< ExpressionParsingUtilparsingUtil
 

The documentation for this class was generated from the following files: