My Project
|
#include <OperationSupport.h>
Public Member Functions | |
OpPrintingFlags () | |
Initialize the printing flags with default supplied by the cl::opts above. More... | |
OpPrintingFlags (llvm::NoneType) | |
OpPrintingFlags & | elideLargeElementsAttrs (int64_t largeElementLimit=16) |
OpPrintingFlags & | enableDebugInfo (bool prettyForm=false) |
OpPrintingFlags & | printGenericOpForm () |
Always print operations in the generic form. More... | |
OpPrintingFlags & | useLocalScope () |
bool | shouldElideElementsAttr (ElementsAttr attr) const |
Return if the given ElementsAttr should be elided. More... | |
bool | shouldPrintDebugInfo () const |
Return if debug information should be printed. More... | |
bool | shouldPrintDebugInfoPrettyForm () const |
Return if debug information should be printed in the pretty form. More... | |
bool | shouldPrintGenericOpForm () const |
Return if operations should be printed in the generic form. More... | |
bool | shouldUseLocalScope () const |
Return if the printer should use local scope when dumping the IR. More... | |
Set of flags used to control the behavior of the various IR print methods (e.g. Operation::Print).
OpPrintingFlags::OpPrintingFlags | ( | ) |
Initialize the printing flags with default supplied by the cl::opts above.
|
inline |
OpPrintingFlags & OpPrintingFlags::elideLargeElementsAttrs | ( | int64_t | largeElementLimit = 16 | ) |
Enable the elision of large elements attributes, by printing a '...' instead of the element data. Note: The IR generated with this option is not parsable. largeElementLimit
is used to configure what is considered to be a "large" ElementsAttr by providing an upper limit to the number of elements.
Enable the elision of large elements attributes, by printing a '...' instead of the element data, when the number of elements is greater than largeElementLimit
. Note: The IR generated with this option is not parsable.
OpPrintingFlags & OpPrintingFlags::enableDebugInfo | ( | bool | prettyForm = false | ) |
Enable printing of debug information. If 'prettyForm' is set to true, debug information is printed in a more readable 'pretty' form. Note: The IR generated with 'prettyForm' is not parsable.
Enable printing of debug information. If 'prettyForm' is set to true, debug information is printed in a more readable 'pretty' form.
OpPrintingFlags & OpPrintingFlags::printGenericOpForm | ( | ) |
Always print operations in the generic form.
bool OpPrintingFlags::shouldElideElementsAttr | ( | ElementsAttr | attr | ) | const |
Return if the given ElementsAttr should be elided.
bool OpPrintingFlags::shouldPrintDebugInfo | ( | ) | const |
Return if debug information should be printed.
bool OpPrintingFlags::shouldPrintDebugInfoPrettyForm | ( | ) | const |
Return if debug information should be printed in the pretty form.
bool OpPrintingFlags::shouldPrintGenericOpForm | ( | ) | const |
Return if operations should be printed in the generic form.
bool OpPrintingFlags::shouldUseLocalScope | ( | ) | const |
Return if the printer should use local scope when dumping the IR.
OpPrintingFlags & OpPrintingFlags::useLocalScope | ( | ) |
Use local scope when printing the operation. This allows for using the printer in a more localized and thread-safe setting, but may not necessarily be identical to what the IR will look like when dumping the full module.
Use local scope when printing the operation. This allows for using the printer in a more localized and thread-safe setting, but may not necessarily be identical of what the IR will look like when dumping the full module.