diff options
author | Shoaib Meenai <smeenai@fb.com> | 2024-11-07 14:36:29 -0800 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2024-11-07 14:36:29 -0800 |
commit | 69adad4ee21b88d93aa2ee158702a877946268be (patch) | |
tree | fe96b10e812e6316d15e2a7864131f1e7ac60c1c /clang/lib/CIR/CodeGen/CIRGenerator.cpp | |
parent | 6e9ae17ac9d0ba2f98081c6079fe7edbcb0cdf0a (diff) | |
download | llvm-users/smeenai/2/orig.zip llvm-users/smeenai/2/orig.tar.gz llvm-users/smeenai/2/orig.tar.bz2 |
[clang][CIR] Merge the mlir::cir namespace into cirusers/smeenai/2/orig
https://github.com/llvm/clangir/issues/1025 discusses the motivation.
The mechanical parts of this change were done via:
find clang \( -name '*.h' -o -name '*.cpp' -o -name '*.td' \) -print0 | xargs -0 perl -pi -e 's/mlir::cir/cir/g'
find clang \( -name '*.h' -o -name '*.cpp' \) -print0 | xargs -0 perl -pi -e 's/::cir/cir/g'
There were some manual fixups and a clang-format run afterwards.
ghstack-source-id: fe96b10e812e6316d15e2a7864131f1e7ac60c1c
ghstack-comment-id: 2463364322
Pull Request resolved: https://github.com/llvm/llvm-project/pull/115386
Diffstat (limited to 'clang/lib/CIR/CodeGen/CIRGenerator.cpp')
-rw-r--r-- | clang/lib/CIR/CodeGen/CIRGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenerator.cpp b/clang/lib/CIR/CodeGen/CIRGenerator.cpp index 825f78d..85367a9 100644 --- a/clang/lib/CIR/CodeGen/CIRGenerator.cpp +++ b/clang/lib/CIR/CodeGen/CIRGenerator.cpp @@ -35,7 +35,7 @@ void CIRGenerator::Initialize(ASTContext &astCtx) { this->astCtx = &astCtx; mlirCtx = std::make_unique<mlir::MLIRContext>(); - mlirCtx->loadDialect<mlir::cir::CIRDialect>(); + mlirCtx->loadDialect<cir::CIRDialect>(); cgm = std::make_unique<clang::CIRGen::CIRGenModule>(*mlirCtx.get(), astCtx, codeGenOpts, diags); } |