OmniSciDB
a5dc49c757
|
#include <AutomaticIRMetadataGuard.h>
Classes | |
struct | InstructionInfo |
Public Member Functions | |
AutomaticIRMetadataGuard (CgenState *cgen_state, const std::string &ppfile, const size_t ppline, const std::string &ppfunc) | |
~AutomaticIRMetadataGuard () | |
void | done () noexcept |
void | rememberPreexistingInstructions () noexcept |
void | rememberOurInstructions () noexcept |
void | markInstructions () noexcept |
Private Types | |
using | OurInstructions = std::unordered_map< llvm::Instruction *, InstructionInfo > |
Private Member Functions | |
std::string | makeBaseFilename () |
std::string | makeQueryEngineFilename () |
std::string | replacePunctuation (std::string text) |
Private Attributes | |
CgenState * | cgen_state_ |
const std::string | ppfile_ |
const size_t | ppline_ |
const std::string | ppfunc_ |
std::unordered_set < llvm::Instruction * > | preexisting_instructions_ |
OurInstructions * | our_instructions_ |
bool | done_ |
bool | this_is_root_ |
bool | enabled_ |
Static Private Attributes | |
static std::unordered_map < CgenState *, OurInstructions > | instructions_ |
static const std::string | detailed_footnote_prefix_ {"HEAVY.AI Debugging Info: "} |
static std::mutex | instructions_mutex_ |
Definition at line 31 of file AutomaticIRMetadataGuard.h.
|
private |
Definition at line 183 of file AutomaticIRMetadataGuard.h.
|
inline |
Definition at line 33 of file AutomaticIRMetadataGuard.h.
References cgen_state_, CHECK, enabled_, g_enable_automatic_ir_metadata, instructions_, instructions_mutex_, CgenState::module_, our_instructions_, rememberPreexistingInstructions(), and this_is_root_.
|
inline |
Definition at line 54 of file AutomaticIRMetadataGuard.h.
References done().
|
inlinenoexcept |
Definition at line 56 of file AutomaticIRMetadataGuard.h.
References cgen_state_, done_, enabled_, instructions_, instructions_mutex_, markInstructions(), rememberOurInstructions(), and this_is_root_.
Referenced by ~AutomaticIRMetadataGuard().
|
inlineprivate |
Definition at line 137 of file AutomaticIRMetadataGuard.h.
References ppfile_, and split().
Referenced by rememberOurInstructions().
|
inlineprivate |
Definition at line 145 of file AutomaticIRMetadataGuard.h.
References f(), anonymous_namespace{Utm.h}::n, ppfile_, and split().
Referenced by rememberOurInstructions().
|
inlinenoexcept |
Definition at line 112 of file AutomaticIRMetadataGuard.h.
References cgen_state_, CgenState::context_, detailed_footnote_prefix_, CgenState::module_, and our_instructions_.
Referenced by done().
|
inlinenoexcept |
Definition at line 84 of file AutomaticIRMetadataGuard.h.
References cgen_state_, makeBaseFilename(), makeQueryEngineFilename(), CgenState::module_, our_instructions_, ppfunc_, ppline_, preexisting_instructions_, replacePunctuation(), and to_string().
Referenced by done().
|
inlinenoexcept |
Definition at line 68 of file AutomaticIRMetadataGuard.h.
References cgen_state_, CHECK_EQ, CgenState::module_, and preexisting_instructions_.
Referenced by AutomaticIRMetadataGuard().
|
inlineprivate |
Definition at line 168 of file AutomaticIRMetadataGuard.h.
Referenced by rememberOurInstructions().
|
private |
Definition at line 185 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), done(), markInstructions(), rememberOurInstructions(), and rememberPreexistingInstructions().
|
inlinestaticprivate |
Definition at line 200 of file AutomaticIRMetadataGuard.h.
Referenced by markInstructions().
|
private |
Definition at line 194 of file AutomaticIRMetadataGuard.h.
Referenced by done().
|
private |
Definition at line 196 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), and done().
|
inlinestaticprivate |
Definition at line 198 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), and done().
|
inlinestaticprivate |
Definition at line 202 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), and done().
|
private |
Definition at line 192 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), markInstructions(), and rememberOurInstructions().
|
private |
Definition at line 187 of file AutomaticIRMetadataGuard.h.
Referenced by makeBaseFilename(), and makeQueryEngineFilename().
|
private |
Definition at line 189 of file AutomaticIRMetadataGuard.h.
Referenced by rememberOurInstructions().
|
private |
Definition at line 188 of file AutomaticIRMetadataGuard.h.
Referenced by rememberOurInstructions().
|
private |
Definition at line 191 of file AutomaticIRMetadataGuard.h.
Referenced by rememberOurInstructions(), and rememberPreexistingInstructions().
|
private |
Definition at line 195 of file AutomaticIRMetadataGuard.h.
Referenced by AutomaticIRMetadataGuard(), and done().