[MLIR] Add `getI8Type` to `OpBuilder`

Differential Revision: https://reviews.llvm.org/D107332
This commit is contained in:
Frederik Gossen 2021-08-03 11:34:04 +02:00
parent 0d8cd4e2d5
commit f0008a4cf4
2 changed files with 3 additions and 0 deletions

View File

@ -70,6 +70,7 @@ public:
IndexType getIndexType();
IntegerType getI1Type();
IntegerType getI8Type();
IntegerType getI32Type();
IntegerType getI64Type();
IntegerType getIntegerType(unsigned width);

View File

@ -53,6 +53,8 @@ IndexType Builder::getIndexType() { return IndexType::get(context); }
IntegerType Builder::getI1Type() { return IntegerType::get(context, 1); }
IntegerType Builder::getI8Type() { return IntegerType::get(context, 8); }
IntegerType Builder::getI32Type() { return IntegerType::get(context, 32); }
IntegerType Builder::getI64Type() { return IntegerType::get(context, 64); }