llvm.org GIT mirror llvm / 21a7e1a
Merging r143712: ------------------------------------------------------------------------ r143712 | efriedma | 2011-11-04 10:29:35 -0700 (Fri, 04 Nov 2011) | 3 lines Add missing argument for atomic instructions in c++ backend. PR11268, part 2. ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_30@143999 91177308-0d34-0410-b5e6-96231b3b80d8 Bill Wendling 7 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
14911491 StringRef CrossThread = ConvertAtomicSynchScope(fi->getSynchScope());
14921492 Out << "FenceInst* " << iName
14931493 << " = new FenceInst(mod->getContext(), "
1494 << Ordering << ", " << CrossThread
1494 << Ordering << ", " << CrossThread << ", " << bbname
14951495 << ");";
14961496 break;
14971497 }
15021502 Out << "AtomicCmpXchgInst* " << iName
15031503 << " = new AtomicCmpXchgInst("
15041504 << opNames[0] << ", " << opNames[1] << ", " << opNames[2] << ", "
1505 << Ordering << ", " << CrossThread
1505 << Ordering << ", " << CrossThread << ", " << bbname
15061506 << ");";
15071507 nl(Out) << iName << "->setName(\"";
15081508 printEscapedString(cxi->getName());
15321532 << " = new AtomicRMWInst("
15331533 << Operation << ", "
15341534 << opNames[0] << ", " << opNames[1] << ", "
1535 << Ordering << ", " << CrossThread
1535 << Ordering << ", " << CrossThread << ", " << bbname
15361536 << ");";
15371537 nl(Out) << iName << "->setName(\"";
15381538 printEscapedString(rmwi->getName());