Skip to content

Commit 5c00183

Browse files
Corrected format
1 parent c0aa031 commit 5c00183

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

clang/lib/DPCT/RulesAsm/AsmMigration.cpp

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -600,10 +600,10 @@ bool SYCLGenBase::emitVariableDeclaration(const InlineAsmVarDecl *D) {
600600

601601
bool SYCLGenBase::emitAddressExpr(const InlineAsmAddressExpr *Dst) {
602602
// Address expression only support ld/st/red & atom instructions.
603-
if (!CurrInst || !CurrInst->is(asmtok::op_st, asmtok::op_ld, asmtok::op_atom,
604-
asmtok::op_prefetch, asmtok::op_red,
605-
asmtok::op_cp, asmtok::op_ldmatrix,
606-
asmtok::op_stmatrix)) {
603+
if (!CurrInst ||
604+
!CurrInst->is(asmtok::op_st, asmtok::op_ld, asmtok::op_atom,
605+
asmtok::op_prefetch, asmtok::op_red, asmtok::op_cp,
606+
asmtok::op_ldmatrix, asmtok::op_stmatrix)) {
607607
return SYCLGenError();
608608
}
609609
std::string Type;
@@ -1386,16 +1386,6 @@ class SYCLGen : public SYCLGenBase {
13861386

13871387
if (!Type || Type->getKind() != InlineAsmBuiltinType::b16)
13881388
return SYCLGenError();
1389-
<<<<<<< HEAD
1390-
=======
1391-
1392-
llvm::SaveAndRestore<const InlineAsmInstruction *> Store(CurrInst);
1393-
CurrInst = Inst;
1394-
const auto *Dst =
1395-
dyn_cast_or_null<InlineAsmAddressExpr>(Inst->getOutputOperand());
1396-
if (!Dst)
1397-
return false;
1398-
>>>>>>> db0271c2b2a8 (Added b16 limitation and comments)
13991389

14001390
const InlineAsmVectorExpr *VE;
14011391
if (VE = dyn_cast<InlineAsmVectorExpr>(Inst->getInputOperand(0))) {

0 commit comments

Comments
 (0)