OpenASIP
2.0
|
#include "LLVMUtilities.hh"
#include "TCEString.hh"
#include "tce_config.h"
#include "CompilerWarnings.hh"
#include <llvm/CodeGen/MachineInstr.h>
#include <llvm/CodeGen/MachineOperand.h>
#include <llvm/IR/DebugLoc.h>
#include <llvm/IR/DebugInfo.h>
Go to the source code of this file.
Functions | |
POP_COMPILER_DIAGS std::tuple< std::string, size_t > | getSourceLocationInfo (const llvm::MachineInstr &mi) |
std::string | getSourceLocationString (const llvm::MachineInstr &mi) |
AsmOperandMap | getInlineAsmOperands (const llvm::MachineInstr &mi) |
Implementations of LLVM utilities.
Declarations of LLVM utilities.
Definition in file LLVMUtilities.cc.
AsmOperandMap getInlineAsmOperands | ( | const llvm::MachineInstr & | mi | ) |
Decodes operands of INLINEASM instruction into more manageable struct.
Definition at line 92 of file LLVMUtilities.cc.
Referenced by InlineAsmParser::addLiveRangeData(), llvm::LLVMTCEBuilder::emitInlineAsm(), and InlineAsmParser::substituteAsmString().
POP_COMPILER_DIAGS std::tuple<std::string, size_t> getSourceLocationInfo | ( | const llvm::MachineInstr & | mi | ) |
Extracts source location info from the instruction.
If the instruction does not have debug info returns ("", 0);
Definition at line 54 of file LLVMUtilities.cc.
Referenced by InlineAsmParser::addDebugInfoToInlineAsmBB(), llvm::LLVMTCEBuilder::emitInlineAsm(), getSourceLocationString(), and InlineAsmParser::substituteAsmString().
std::string getSourceLocationString | ( | const llvm::MachineInstr & | mi | ) |
Returns source location as "<src-file>:<src-line>: " string if available.
Otherwise return empty string.
Definition at line 78 of file LLVMUtilities.cc.
References getSourceLocationInfo().
Referenced by llvm::LLVMTCEBuilder::emitInlineAsm().