[llvm] [TableGen] Improve handling for dag op names (PR #149248)
Rahul Joshi via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 22 11:46:33 PDT 2025
================
@@ -1310,7 +1319,7 @@ const Init *BinOpInit::Fold(const Record *CurRec) const {
SmallVector<std::pair<const Init *, const StringInit *>, 8> Args;
llvm::append_range(Args, LHSs->getArgAndNames());
llvm::append_range(Args, RHSs->getArgAndNames());
- return DagInit::get(Op, Args);
+ return DagInit::get(Op, LHSs->getName(), Args);
----------------
jurahul wrote:
See comment below, should we choose the non-empty name if LHS name is empty but LHS not?
https://github.com/llvm/llvm-project/pull/149248
More information about the llvm-commits
mailing list