|
MLIR 24.0.0git
|
#include "LoopAnnotationImporter.h"#include "llvm/ADT/ScopeExit.h"#include "llvm/ADT/SmallPtrSet.h"#include "llvm/IR/Constants.h"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 264 of file LoopAnnotationImporter.cpp.
References isEmptyOrNull().
Definition at line 254 of file LoopAnnotationImporter.cpp.
Referenced by createIfNonNull().
|
static |
Definition at line 257 of file LoopAnnotationImporter.cpp.