aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorIngo Müller <ingomueller@google.com>2023-10-17 12:32:16 +0200
committerGitHub <noreply@github.com>2023-10-17 12:32:16 +0200
commit22e3bf4eaf6cbbd387a3789e7ee082434e62d072 (patch)
tree5925d8f30961ac406f61879aa2bf4f7f71636e70 /clang/lib/CodeGen/CodeGenFunction.cpp
parentbea3684944c0d7962cd53ab77aad756cfee76b7c (diff)
downloadllvm-22e3bf4eaf6cbbd387a3789e7ee082434e62d072.zip
llvm-22e3bf4eaf6cbbd387a3789e7ee082434e62d072.tar.gz
llvm-22e3bf4eaf6cbbd387a3789e7ee082434e62d072.tar.bz2
[mlir][transform] Fix new interpreter and library preloading passes. (#69190)
This PR fixes the two recently added passes from #68661, which were non-functional and untested. In particular: * The passes did not declare their dependent dialects, so they could not run at all in the most simple cases. * The mechanism of loading the library module in the initialization of the intepreter pass is broken by design (but, fortunately, also not necessary). This is because the initialization of all passes happens before the execution of any other pass, so the "preload library" pass has not run yet at the time the interpreter pass gets initialized. Instead, the library is now loaded every time the interpreter pass is run. This should not be exceedingly expensive, since it only consists of looking up the library in the dialect. Also, this removes the library module from the pass state, making it possible in the future to preload libraries in several passes. * The PR adds tests for the two passes, which were completely untested previously.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions