aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorMichele Scuttari <michele.scuttari@outlook.com>2025-05-23 09:21:35 +0200
committerGitHub <noreply@github.com>2025-05-23 09:21:35 +0200
commit61d5fdf50c78810972f5984473600fd917ccaff5 (patch)
tree52fb8c9e8ec88c2ede0457284ae2e85dc532104f /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parent3d028348ce0d6fa531ba7dad8fd38893019dc609 (diff)
downloadllvm-61d5fdf50c78810972f5984473600fd917ccaff5.zip
llvm-61d5fdf50c78810972f5984473600fd917ccaff5.tar.gz
llvm-61d5fdf50c78810972f5984473600fd917ccaff5.tar.bz2
[MLIR] Add bufferization state class to OneShotBufferization pass (#141019)
Follow-up on #138143, which was reverted due to a missing update a method signature (more specifically, the bufferization interface for `tensor::ConcatOp`) that was not catched before merging. The old PR description is reported in the next lines. This PR is a follow-up on https://github.com/llvm/llvm-project/pull/138125, and adds a bufferization state class providing information about the IR. The information currently consists of a cached list of symbol tables, which aims to solve the quadratic scaling of the bufferization task with respect to the number of symbols. The PR breaks API compatibility: the bufferize method of the BufferizableOpInterface has been enriched with a reference to a BufferizationState object. The bufferization state must be kept in a valid state by the interface implementations. For example, if an operation with the Symbol trait is inserted or replaced, its parent SymbolTable must be updated accordingly (see, for example, the bufferization of arith::ConstantOp, where the symbol table of the module gets the new global symbol inserted). Similarly, the invalidation of a symbol table must be performed if an operation with the SymbolTable trait is removed (this can be performed using the invalidateSymbolTable method, introduced in https://github.com/llvm/llvm-project/pull/138014).
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions