[Mlir-commits] [mlir] [mlir][EmitC] Add support for pointer and opaque types to subscript op (PR #86266)

Simon Camphausen llvmlistbot at llvm.org
Fri Mar 22 06:24:40 PDT 2024


================
@@ -30,8 +30,14 @@
 namespace mlir {
 namespace emitc {
 void buildTerminatedBody(OpBuilder &builder, Location loc);
+
 /// Determines whether \p type is a valid integer type in EmitC.
 bool isSupportedIntegerType(mlir::Type type);
+
+/// Determines whether \p type is integer like, i.e. it's a supported integer,
+/// an index or opaque type.
+bool isIntegerLikeType(Type type);
----------------
simon-camp wrote:

I've renamed it like you suggested. As this is not used in Tablegen for the subscript op I did not add a predicate for it yet.

https://github.com/llvm/llvm-project/pull/86266


More information about the Mlir-commits mailing list