|
MLIR 22.0.0git
|
Go to the source code of this file.
Functions | |
| static bool | isEmptyOrNull (const Attribute attr) |
| template<typename T> | |
| static bool | isEmptyOrNull (const SmallVectorImpl< T > &vec) |
| template<typename T, typename... P> | |
| static T | createIfNonNull (MLIRContext *ctx, const P &...args) |
| Helper function that only creates and attribute of type T if all argument conversion were successfull and at least one of them holds a non-null value. | |
|
static |
Helper function that only creates and attribute of type T if all argument conversion were successfull and at least one of them holds a non-null value.
Definition at line 275 of file LoopAnnotationImporter.cpp.
References isEmptyOrNull().
Definition at line 265 of file LoopAnnotationImporter.cpp.
Referenced by createIfNonNull().
|
static |
Definition at line 268 of file LoopAnnotationImporter.cpp.