|
clang 23.0.0git
|
#include "mlir/IR/BuiltinAttributes.h"#include "mlir/Transforms/DialectConversion.h"#include "clang/CIR/Dialect/IR/CIRDialect.h"Go to the source code of this file.
Functions | |
| mlir::DenseElementsAttr | convertStringAttrToDenseElementsAttr (cir::ConstArrayAttr attr, mlir::Type type) |
| template<typename StorageTy> | |
| StorageTy | getZeroInitFromType (mlir::Type ty) |
| template<> | |
| mlir::APInt | getZeroInitFromType (mlir::Type ty) |
| template<> | |
| mlir::APFloat | getZeroInitFromType (mlir::Type ty) |
| template<typename AttrTy, typename StorageTy> | |
| void | convertToDenseElementsAttrImpl (cir::ConstArrayAttr attr, llvm::SmallVectorImpl< StorageTy > &values) |
| template<typename AttrTy, typename StorageTy> | |
| mlir::DenseElementsAttr | convertToDenseElementsAttr (cir::ConstArrayAttr attr, const llvm::SmallVectorImpl< int64_t > &dims, mlir::Type type) |
| std::optional< mlir::Attribute > | lowerConstArrayAttr (cir::ConstArrayAttr constArr, const mlir::TypeConverter *converter, mlir::ModuleOp moduleOp={}) |
| std::optional< mlir::Attribute > | lowerConstRecordAttr (cir::ConstRecordAttr constRecord, const mlir::TypeConverter *converter, mlir::ModuleOp moduleOp={}) |
| mlir::Value | getConstAPInt (mlir::OpBuilder &bld, mlir::Location loc, mlir::Type typ, const llvm::APInt &val) |
| mlir::Value | getConst (mlir::OpBuilder &bld, mlir::Location loc, mlir::Type typ, unsigned val) |
| mlir::Value | createShL (mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs) |
| mlir::Value | createAShR (mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs) |
| mlir::Value | createAnd (mlir::OpBuilder &bld, mlir::Value lhs, const llvm::APInt &rhs) |
| mlir::Value | createLShR (mlir::OpBuilder &bld, mlir::Value lhs, unsigned rhs) |
| mlir::DenseElementsAttr convertStringAttrToDenseElementsAttr | ( | cir::ConstArrayAttr | attr, |
| mlir::Type | type ) |
Definition at line 27 of file LoweringHelpers.cpp.
References getIntOrBoolBitWidth().
Referenced by lowerConstArrayAttr().
| mlir::DenseElementsAttr convertToDenseElementsAttr | ( | cir::ConstArrayAttr | attr, |
| const llvm::SmallVectorImpl< int64_t > & | dims, | ||
| mlir::Type | type ) |
| void convertToDenseElementsAttrImpl | ( | cir::ConstArrayAttr | attr, |
| llvm::SmallVectorImpl< StorageTy > & | values ) |
| mlir::Value createAnd | ( | mlir::OpBuilder & | bld, |
| mlir::Value | lhs, | ||
| const llvm::APInt & | rhs ) |
Definition at line 362 of file LoweringHelpers.cpp.
References getConstAPInt().
| mlir::Value createAShR | ( | mlir::OpBuilder & | bld, |
| mlir::Value | lhs, | ||
| unsigned | rhs ) |
Definition at line 355 of file LoweringHelpers.cpp.
References getConst().
| mlir::Value createLShR | ( | mlir::OpBuilder & | bld, |
| mlir::Value | lhs, | ||
| unsigned | rhs ) |
Definition at line 368 of file LoweringHelpers.cpp.
References getConst().
| mlir::Value createShL | ( | mlir::OpBuilder & | bld, |
| mlir::Value | lhs, | ||
| unsigned | rhs ) |
Definition at line 348 of file LoweringHelpers.cpp.
References getConst().
| mlir::Value getConst | ( | mlir::OpBuilder & | bld, |
| mlir::Location | loc, | ||
| mlir::Type | typ, | ||
| unsigned | val ) |
Definition at line 343 of file LoweringHelpers.cpp.
Referenced by createAShR(), createLShR(), and createShL().
| mlir::Value getConstAPInt | ( | mlir::OpBuilder & | bld, |
| mlir::Location | loc, | ||
| mlir::Type | typ, | ||
| const llvm::APInt & | val ) |
Definition at line 338 of file LoweringHelpers.cpp.
Referenced by createAnd().
| StorageTy getZeroInitFromType | ( | mlir::Type | ty | ) |
Referenced by convertToDenseElementsAttr().
| mlir::APInt getZeroInitFromType | ( | mlir::Type | ty | ) |
Definition at line 53 of file LoweringHelpers.cpp.
| mlir::APFloat getZeroInitFromType | ( | mlir::Type | ty | ) |
Definition at line 53 of file LoweringHelpers.cpp.
| std::optional< mlir::Attribute > lowerConstArrayAttr | ( | cir::ConstArrayAttr | constArr, |
| const mlir::TypeConverter * | converter, | ||
| mlir::ModuleOp | moduleOp = {} ) |
Definition at line 216 of file LoweringHelpers.cpp.
References containsPoison(), convertStringAttrToDenseElementsAttr(), convertToDenseElementsAttr(), and lowerPointerElementAttr().
Referenced by lowerConstRecordMemberAttr().
| std::optional< mlir::Attribute > lowerConstRecordAttr | ( | cir::ConstRecordAttr | constRecord, |
| const mlir::TypeConverter * | converter, | ||
| mlir::ModuleOp | moduleOp = {} ) |
Definition at line 318 of file LoweringHelpers.cpp.
References lowerConstRecordMemberAttr().
Referenced by lowerConstRecordMemberAttr().