[Mlir-commits] [mlir] f0008a4 - [MLIR] Add `getI8Type` to `OpBuilder`
Frederik Gossen
llvmlistbot at llvm.org
Tue Aug 3 02:43:01 PDT 2021
Author: Frederik Gossen
Date: 2021-08-03T11:42:39+02:00
New Revision: f0008a4cf43588ff695c84dbfe3b1ae89640f85c
URL: https://github.com/llvm/llvm-project/commit/f0008a4cf43588ff695c84dbfe3b1ae89640f85c
DIFF: https://github.com/llvm/llvm-project/commit/f0008a4cf43588ff695c84dbfe3b1ae89640f85c.diff
LOG: [MLIR] Add `getI8Type` to `OpBuilder`
Differential Revision: https://reviews.llvm.org/D107332
Added:
Modified:
mlir/include/mlir/IR/Builders.h
mlir/lib/IR/Builders.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Builders.h b/mlir/include/mlir/IR/Builders.h
index f8a41093a928..e27a1cb7ffb3 100644
--- a/mlir/include/mlir/IR/Builders.h
+++ b/mlir/include/mlir/IR/Builders.h
@@ -70,6 +70,7 @@ class Builder {
IndexType getIndexType();
IntegerType getI1Type();
+ IntegerType getI8Type();
IntegerType getI32Type();
IntegerType getI64Type();
IntegerType getIntegerType(unsigned width);
diff --git a/mlir/lib/IR/Builders.cpp b/mlir/lib/IR/Builders.cpp
index de77afe6acb6..df04309707e6 100644
--- a/mlir/lib/IR/Builders.cpp
+++ b/mlir/lib/IR/Builders.cpp
@@ -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); }
More information about the Mlir-commits
mailing list