Skip to content

Commit

Permalink
Revert "Add missing ::llvm::"
Browse files Browse the repository at this point in the history
This reverts commit 3b87fe1.
  • Loading branch information
tsymalla-AMD authored Jul 17, 2024
1 parent 118fa3e commit 7a148bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/TableGen/Operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ void AccessorBuilder::emitVarArgReplacementDefinition() const {
if ($index > 0)
newArgs.append(arg_begin(), arg_begin() + $index);
newArgs.append($name.begin(), $name.end());
$_op *newOp = ::llvm::cast<$_op>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
$_op *newOp = cast<$_op>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down
4 changes: 2 additions & 2 deletions test/example/generated/ExampleDialect.cpp.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1508,7 +1508,7 @@ instName
if (0 > 0)
newArgs.append(arg_begin(), arg_begin() + 0);
newArgs.append(instName_0.begin(), instName_0.end());
InstNameConflictVarargsOp *newOp = ::llvm::cast<InstNameConflictVarargsOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
InstNameConflictVarargsOp *newOp = cast<InstNameConflictVarargsOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down Expand Up @@ -2249,7 +2249,7 @@ data
if (1 > 0)
newArgs.append(arg_begin(), arg_begin() + 1);
newArgs.append(args.begin(), args.end());
WriteVarArgOp *newOp = ::llvm::cast<WriteVarArgOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
WriteVarArgOp *newOp = cast<WriteVarArgOp>(::llvm::CallInst::Create(getCalledFunction(), newArgs, ::std::nullopt, this->getName(), this->getIterator()));
this->replaceAllUsesWith(newOp);
this->eraseFromParent();
return newOp;
Expand Down

0 comments on commit 7a148bb

Please sign in to comment.