aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CIR/CodeGen/CIRGenModule.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2024-11-07 14:36:29 -0800
committerShoaib Meenai <smeenai@fb.com>2024-11-07 14:36:29 -0800
commit69adad4ee21b88d93aa2ee158702a877946268be (patch)
treefe96b10e812e6316d15e2a7864131f1e7ac60c1c /clang/lib/CIR/CodeGen/CIRGenModule.cpp
parent6e9ae17ac9d0ba2f98081c6079fe7edbcb0cdf0a (diff)
downloadllvm-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/CIRGenModule.cpp')
-rw-r--r--clang/lib/CIR/CodeGen/CIRGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CIR/CodeGen/CIRGenModule.cpp b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
index 5a6fc27..4e8a8cc 100644
--- a/clang/lib/CIR/CodeGen/CIRGenModule.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -77,7 +77,7 @@ void CIRGenModule::buildGlobal(clang::GlobalDecl gd) {
void CIRGenModule::buildGlobalFunctionDefinition(clang::GlobalDecl gd,
mlir::Operation *op) {
auto const *funcDecl = cast<FunctionDecl>(gd.getDecl());
- auto funcOp = builder.create<mlir::cir::FuncOp>(
+ auto funcOp = builder.create<cir::FuncOp>(
getLoc(funcDecl->getSourceRange()), funcDecl->getIdentifier()->getName());
theModule.push_back(funcOp);
}