[all-commits] [llvm/llvm-project] bf87d5: [MLIR][Parser] Add `parseBase64Bytes`.
Aman LaChapelle via All-commits
all-commits at lists.llvm.org
Fri Nov 18 08:13:44 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bf87d5ad8207b6002d0ff247f4803698be35950d
https://github.com/llvm/llvm-project/commit/bf87d5ad8207b6002d0ff247f4803698be35950d
Author: bzcheeseman <aman.lachapelle at gmail.com>
Date: 2022-11-18 (Fri, 18 Nov 2022)
Changed paths:
M mlir/include/mlir/IR/OpImplementation.h
M mlir/lib/AsmParser/AsmParserImpl.h
M mlir/test/IR/parser.mlir
M mlir/test/lib/Dialect/Test/TestDialect.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
Log Message:
-----------
[MLIR][Parser] Add `parseBase64Bytes`.
This patch adds `parseBase64Bytes` to the parser. It attempts to avoid double-allocating the buffer by re-using the token's spelling directly and eliding the quotes if they exist. It also avoids extra allocations by using std::vector<char> in the API - something we should change when the llvm::decodeBase64 API changes.
Reviewed By: rriddle
Differential Revision: https://reviews.llvm.org/D138090
More information about the All-commits
mailing list