Enhance the type system to support arbitrary precision integers, which are
important for low-bitwidth inference cases and hardware synthesis targets.
Rename 'int' to 'affineint' to avoid confusion between "the integers" and "the int
type".
PiperOrigin-RevId: 202751508
diff --git a/lib/Parser/Token.h b/lib/Parser/Token.h
index e5e4fc4..bc9e8e4 100644
--- a/lib/Parser/Token.h
+++ b/lib/Parser/Token.h
@@ -73,6 +73,9 @@
/// return None.
Optional<unsigned> getUnsignedIntegerValue() const;
+ /// For an inttype token, return its bitwidth.
+ Optional<unsigned> getIntTypeBitwidth() const;
+
/// Given a 'string' token, return its value, including removing the quote
/// characters and unescaping the contents of the string.
std::string getStringValue() const;