MLIR  15.0.0git
Public Member Functions | Friends | List of all members
mlir::LLVM::LoopOptionsAttrBuilder Class Reference

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...
 
LoopOptionsAttrBuildersetDisableLICM (Optional< bool > value)
 Set the disable_licm option to the provided value. More...
 
LoopOptionsAttrBuildersetInterleaveCount (Optional< uint64_t > count)
 Set the interleave_count option to the provided value. More...
 
LoopOptionsAttrBuildersetDisableUnroll (Optional< bool > value)
 Set the disable_unroll option to the provided value. More...
 
LoopOptionsAttrBuildersetDisablePipeline (Optional< bool > value)
 Set the disable_pipeline option to the provided value. More...
 
LoopOptionsAttrBuildersetPipelineInitiationInterval (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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ LoopOptionsAttrBuilder() [1/2]

mlir::LLVM::LoopOptionsAttrBuilder::LoopOptionsAttrBuilder ( )
default

Construct a empty builder.

◆ LoopOptionsAttrBuilder() [2/2]

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.

Member Function Documentation

◆ empty()

bool mlir::LLVM::LoopOptionsAttrBuilder::empty ( )
inline

Returns true if any option has been set.

Definition at line 128 of file LLVMDialect.h.

References options.

◆ setDisableLICM()

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.

◆ setDisablePipeline()

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.

◆ setDisableUnroll()

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.

◆ setInterleaveCount()

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.

◆ setPipelineInitiationInterval()

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.

Friends And Related Function Documentation

◆ LoopOptionsAttr

friend class LoopOptionsAttr
friend

Definition at line 134 of file LLVMDialect.h.

Referenced by getOption().


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