MLIR
15.0.0git
|
Builder class for LoopOptionsAttr. More...
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
Public Member Functions | |
LoopOptionsAttrBuilder ()=default | |
Construct a empty builder. More... | |
LoopOptionsAttrBuilder (LoopOptionsAttr attr) | |
Construct a builder with an initial list of options from an existing LoopOptionsAttr. More... | |
LoopOptionsAttrBuilder & | setDisableLICM (Optional< bool > value) |
Set the disable_licm option to the provided value. More... | |
LoopOptionsAttrBuilder & | setInterleaveCount (Optional< uint64_t > count) |
Set the interleave_count option to the provided value. More... | |
LoopOptionsAttrBuilder & | setDisableUnroll (Optional< bool > value) |
Set the disable_unroll option to the provided value. More... | |
LoopOptionsAttrBuilder & | setDisablePipeline (Optional< bool > value) |
Set the disable_pipeline option to the provided value. More... | |
LoopOptionsAttrBuilder & | setPipelineInitiationInterval (Optional< uint64_t > count) |
Set the pipeline_initiation_interval option to the provided value. More... | |
bool | empty () |
Returns true if any option has been set. More... | |
Friends | |
class | LoopOptionsAttr |
Builder class for LoopOptionsAttr.
This helper class allows to progressively build a LoopOptionsAttr one option at a time, and pay the price of attribute creation once all the options are in place.
Definition at line 97 of file LLVMDialect.h.
|
default |
Construct a empty builder.
LoopOptionsAttrBuilder::LoopOptionsAttrBuilder | ( | LoopOptionsAttr | attr | ) |
Construct a builder with an initial list of options from an existing LoopOptionsAttr.
Definition at line 2984 of file LLVMDialect.cpp.
|
inline |
Returns true if any option has been set.
Definition at line 128 of file LLVMDialect.h.
References options.
LoopOptionsAttrBuilder & LoopOptionsAttrBuilder::setDisableLICM | ( | Optional< bool > | value | ) |
Set the disable_licm
option to the provided value.
If no value is provided the option is deleted.
Definition at line 3004 of file LLVMDialect.cpp.
LoopOptionsAttrBuilder & LoopOptionsAttrBuilder::setDisablePipeline | ( | Optional< bool > | value | ) |
Set the disable_pipeline
option to the provided value.
If no value is provided the option is deleted.
Definition at line 3025 of file LLVMDialect.cpp.
LoopOptionsAttrBuilder & LoopOptionsAttrBuilder::setDisableUnroll | ( | Optional< bool > | value | ) |
Set the disable_unroll
option to the provided value.
If no value is provided the option is deleted.
Definition at line 3018 of file LLVMDialect.cpp.
LoopOptionsAttrBuilder & LoopOptionsAttrBuilder::setInterleaveCount | ( | Optional< uint64_t > | count | ) |
Set the interleave_count
option to the provided value.
If no value is provided the option is deleted.
Definition at line 3011 of file LLVMDialect.cpp.
LoopOptionsAttrBuilder & LoopOptionsAttrBuilder::setPipelineInitiationInterval | ( | Optional< uint64_t > | count | ) |
Set the pipeline_initiation_interval
option to the provided value.
If no value is provided the option is deleted.
Definition at line 3031 of file LLVMDialect.cpp.
|
friend |
Definition at line 134 of file LLVMDialect.h.
Referenced by getOption().