diff options
author | Krzysztof Drewniak <Krzysztof.Drewniak@amd.com> | 2023-07-11 20:28:29 +0000 |
---|---|---|
committer | Krzysztof Drewniak <Krzysztof.Drewniak@amd.com> | 2023-07-14 19:10:52 +0000 |
commit | db647f5bd8fd337260bf636897f45ecfac8eb4cb (patch) | |
tree | b439c38d46d2093a08d608965a059d582160759a /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 4df01dc27079b70d2fdec8d795e525b7955c60f7 (diff) | |
download | llvm-db647f5bd8fd337260bf636897f45ecfac8eb4cb.zip llvm-db647f5bd8fd337260bf636897f45ecfac8eb4cb.tar.gz llvm-db647f5bd8fd337260bf636897f45ecfac8eb4cb.tar.bz2 |
[mlir][GPU] Initialize LLVM exactly once during GPU compiles
No matter how one constructs their SerializeTo* pass, we want to
ensure that the LLVM initialization code runs once and only once. This
commit adds a static once_flag to ensure that.
I've run into mysterious segfaults when calling MLIR GPU compiles from
multiple threads, and this commit is a potential fix for the issue.
Reviewed By: fmorac
Differential Revision: https://reviews.llvm.org/D155226
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions