[Mlir-commits] [mlir] Add AsmParser::parseDecimalInteger. (PR #96255)

Jacques Pienaar llvmlistbot at llvm.org
Mon Jul 1 07:56:08 PDT 2024


================
@@ -308,6 +309,51 @@ OptionalParseResult Parser::parseOptionalInteger(APInt &result) {
   return success();
 }
 
+namespace {
+bool isBinOrHexOrOctIndicator(char c) {
+  return (llvm::toLower(c) == 'x' || llvm::toLower(c) == 'b' ||
----------------
jpienaar wrote:

Looking at the lexer, it seems like only hex is supported there. I think if you did a binary one, it would not be returned as a single integer.

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


More information about the Mlir-commits mailing list