[PATCH] D80111: [MLIR] Add helper functions for common integer types
Frederik Gossen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 19 04:50:56 PDT 2020
This revision was not accepted when it landed; it landed in state "Needs Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG5afd86b0de72: [MLIR] Add helper functions for common integer types (authored by frgossen).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D80111/new/
https://reviews.llvm.org/D80111
Files:
mlir/include/mlir/IR/Builders.h
mlir/lib/IR/Builders.cpp
Index: mlir/lib/IR/Builders.cpp
===================================================================
--- mlir/lib/IR/Builders.cpp
+++ mlir/lib/IR/Builders.cpp
@@ -54,6 +54,10 @@
IntegerType Builder::getI1Type() { return IntegerType::get(1, context); }
+IntegerType Builder::getI32Type() { return IntegerType::get(32, context); }
+
+IntegerType Builder::getI64Type() { return IntegerType::get(64, context); }
+
IntegerType Builder::getIntegerType(unsigned width) {
return IntegerType::get(width, context);
}
Index: mlir/include/mlir/IR/Builders.h
===================================================================
--- mlir/include/mlir/IR/Builders.h
+++ mlir/include/mlir/IR/Builders.h
@@ -69,6 +69,8 @@
IndexType getIndexType();
IntegerType getI1Type();
+ IntegerType getI32Type();
+ IntegerType getI64Type();
IntegerType getIntegerType(unsigned width);
IntegerType getIntegerType(unsigned width, bool isSigned);
FunctionType getFunctionType(ArrayRef<Type> inputs, ArrayRef<Type> results);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80111.264858.patch
Type: text/x-patch
Size: 1019 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200519/c9ad40f0/attachment.bin>
More information about the llvm-commits
mailing list