[Mlir-commits] [mlir] [mlir] MLIR-QUERY DefinitionsMatcher implementation & DAG (PR #115670)
Denzel-Brian Budii
llvmlistbot at llvm.org
Fri Jan 10 04:09:15 PST 2025
================
@@ -144,6 +156,53 @@ class Parser::CodeTokenizer {
return result;
}
+ void consumeNumberLiteral(TokenInfo *result) {
+ bool isFloatingLiteral = false;
+ unsigned length = 1;
+ if (code.size() > 1) {
+ // Consume the 'x' or 'b' radix modifier, if present.
+ switch (tolower(code[1])) {
+ case 'x':
+ case 'b':
+ length = 2;
+ }
+ }
+ while (length < code.size() && isdigit(code[length]))
+ ++length;
+
+ // Try to recognize a floating point literal.
----------------
chios202 wrote:
They are not needed. I will remove the float parser part.
https://github.com/llvm/llvm-project/pull/115670
More information about the Mlir-commits
mailing list