@@ -768,7 +768,7 @@ void HexagonAsmParser::canonicalizeImmediates(MCInst &MCI) {
768
768
if (WarnSignedMismatch)
769
769
Warning (MCI.getLoc (), " Signed/Unsigned mismatch" );
770
770
}
771
- NewInst.addOperand (MCOperand::createExpr (HexagonMCExpr::Create (
771
+ NewInst.addOperand (MCOperand::createExpr (HexagonMCExpr::create (
772
772
MCConstantExpr::create (Value, getContext ()), getContext ())));
773
773
}
774
774
else
@@ -919,7 +919,7 @@ bool HexagonAsmParser::ParseDirectiveSubsection(SMLoc L) {
919
919
// end of the section. Only legacy hexagon-gcc created assembly code
920
920
// used negative subsections.
921
921
if ((Res < 0 ) && (Res > -8193 ))
922
- Subsection = HexagonMCExpr::Create (
922
+ Subsection = HexagonMCExpr::create (
923
923
MCConstantExpr::create (8192 + Res, getContext ()), getContext ());
924
924
925
925
getStreamer ().SubSection (Subsection);
@@ -1339,7 +1339,7 @@ bool HexagonAsmParser::parseExpressionOrOperand(OperandVector &Operands) {
1339
1339
SMLoc Loc = Parser.getLexer ().getLoc ();
1340
1340
MCExpr const *Expr = nullptr ;
1341
1341
bool Error = parseExpression (Expr);
1342
- Expr = HexagonMCExpr::Create (Expr, getContext ());
1342
+ Expr = HexagonMCExpr::create (Expr, getContext ());
1343
1343
if (!Error)
1344
1344
Operands.push_back (HexagonOperand::CreateImm (Expr, Loc, Loc));
1345
1345
return Error;
@@ -1441,7 +1441,7 @@ bool HexagonAsmParser::parseInstruction(OperandVector &Operands) {
1441
1441
MCConstantExpr::create (0xffff , Context),
1442
1442
Context);
1443
1443
}
1444
- Expr = HexagonMCExpr::Create (Expr, Context);
1444
+ Expr = HexagonMCExpr::create (Expr, Context);
1445
1445
HexagonMCInstrInfo::setMustNotExtend (*Expr, MustNotExtend);
1446
1446
std::unique_ptr<HexagonOperand> Operand =
1447
1447
HexagonOperand::CreateImm (Expr, ExprLoc, ExprLoc);
@@ -1563,7 +1563,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1563
1563
1564
1564
case Hexagon::C2_cmpgei: {
1565
1565
MCOperand &MO = Inst.getOperand (2 );
1566
- MO.setExpr (HexagonMCExpr::Create (MCBinaryExpr::createSub (
1566
+ MO.setExpr (HexagonMCExpr::create (MCBinaryExpr::createSub (
1567
1567
MO.getExpr (), MCConstantExpr::create (1 , Context), Context), Context));
1568
1568
Inst.setOpcode (Hexagon::C2_cmpgti);
1569
1569
break ;
@@ -1585,7 +1585,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1585
1585
TmpInst.addOperand (Rt);
1586
1586
Inst = TmpInst;
1587
1587
} else {
1588
- MO.setExpr (HexagonMCExpr::Create (MCBinaryExpr::createSub (
1588
+ MO.setExpr (HexagonMCExpr::create (MCBinaryExpr::createSub (
1589
1589
MO.getExpr (), MCConstantExpr::create (1 , Context), Context), Context));
1590
1590
Inst.setOpcode (Hexagon::C2_cmpgtui);
1591
1591
}
@@ -1782,7 +1782,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1782
1782
int64_t Value;
1783
1783
int sVal = (MO.getExpr ()->evaluateAsAbsolute (Value) && Value < 0 ) ? -1 : 0 ;
1784
1784
MCOperand imm (MCOperand::createExpr (
1785
- HexagonMCExpr::Create (MCConstantExpr::create (sVal , Context), Context)));
1785
+ HexagonMCExpr::create (MCConstantExpr::create (sVal , Context), Context)));
1786
1786
Inst = makeCombineInst (Hexagon::A2_combineii, Rdd, imm, MO);
1787
1787
break ;
1788
1788
}
@@ -1797,14 +1797,14 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1797
1797
signed int s8 = (u64 >> 32 ) & 0xFFFFFFFF ;
1798
1798
if (s8 < -128 || s8 > 127 )
1799
1799
OutOfRange (IDLoc, s8, -128 );
1800
- MCOperand imm (MCOperand::createExpr (HexagonMCExpr::Create (
1800
+ MCOperand imm (MCOperand::createExpr (HexagonMCExpr::create (
1801
1801
MCConstantExpr::create (s8, Context), Context))); // upper 32
1802
- MCOperand imm2 (MCOperand::createExpr (HexagonMCExpr::Create (
1802
+ MCOperand imm2 (MCOperand::createExpr (HexagonMCExpr::create (
1803
1803
MCConstantExpr::create (u64 & 0xFFFFFFFF , Context),
1804
1804
Context))); // lower 32
1805
1805
Inst = makeCombineInst (Hexagon::A4_combineii, Rdd, imm, imm2);
1806
1806
} else {
1807
- MCOperand imm (MCOperand::createExpr (HexagonMCExpr::Create (
1807
+ MCOperand imm (MCOperand::createExpr (HexagonMCExpr::create (
1808
1808
MCConstantExpr::create (0 , Context), Context))); // upper 32
1809
1809
Inst = makeCombineInst (Hexagon::A4_combineii, Rdd, imm, MO);
1810
1810
}
@@ -1853,7 +1853,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1853
1853
MCOperand &Rs = Inst.getOperand (2 );
1854
1854
MCOperand &Imm4 = Inst.getOperand (3 );
1855
1855
MCOperand &Imm6 = Inst.getOperand (4 );
1856
- Imm6.setExpr (HexagonMCExpr::Create (MCBinaryExpr::createSub (
1856
+ Imm6.setExpr (HexagonMCExpr::create (MCBinaryExpr::createSub (
1857
1857
Imm6.getExpr (), MCConstantExpr::create (1 , Context), Context), Context));
1858
1858
TmpInst.setOpcode (Hexagon::S2_tableidxh);
1859
1859
TmpInst.addOperand (Rx);
@@ -1872,7 +1872,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1872
1872
MCOperand &Rs = Inst.getOperand (2 );
1873
1873
MCOperand &Imm4 = Inst.getOperand (3 );
1874
1874
MCOperand &Imm6 = Inst.getOperand (4 );
1875
- Imm6.setExpr (HexagonMCExpr::Create (MCBinaryExpr::createSub (
1875
+ Imm6.setExpr (HexagonMCExpr::create (MCBinaryExpr::createSub (
1876
1876
Imm6.getExpr (), MCConstantExpr::create (2 , Context), Context), Context));
1877
1877
TmpInst.setOpcode (Hexagon::S2_tableidxw);
1878
1878
TmpInst.addOperand (Rx);
@@ -1891,7 +1891,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1891
1891
MCOperand &Rs = Inst.getOperand (2 );
1892
1892
MCOperand &Imm4 = Inst.getOperand (3 );
1893
1893
MCOperand &Imm6 = Inst.getOperand (4 );
1894
- Imm6.setExpr (HexagonMCExpr::Create (MCBinaryExpr::createSub (
1894
+ Imm6.setExpr (HexagonMCExpr::create (MCBinaryExpr::createSub (
1895
1895
Imm6.getExpr (), MCConstantExpr::create (3 , Context), Context), Context));
1896
1896
TmpInst.setOpcode (Hexagon::S2_tableidxd);
1897
1897
TmpInst.addOperand (Rx);
@@ -1918,7 +1918,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1918
1918
(void )Absolute;
1919
1919
if (!MustExtend) {
1920
1920
if (Value < 0 && Value > -256 ) {
1921
- Imm.setExpr (HexagonMCExpr::Create (
1921
+ Imm.setExpr (HexagonMCExpr::create (
1922
1922
MCConstantExpr::create (Value * -1 , Context), Context));
1923
1923
TmpInst.setOpcode (Hexagon::M2_mpysin);
1924
1924
} else if (Value < 256 && Value >= 0 )
@@ -1952,7 +1952,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1952
1952
TmpInst.addOperand (Rd);
1953
1953
TmpInst.addOperand (Rs);
1954
1954
} else {
1955
- Imm.setExpr (HexagonMCExpr::Create (
1955
+ Imm.setExpr (HexagonMCExpr::create (
1956
1956
MCBinaryExpr::createSub (Imm.getExpr (),
1957
1957
MCConstantExpr::create (1 , Context), Context),
1958
1958
Context));
@@ -1990,7 +1990,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
1990
1990
TmpInst.addOperand (MCOperand::createReg (MatchRegisterName (Reg2)));
1991
1991
Inst = TmpInst;
1992
1992
} else {
1993
- Imm.setExpr (HexagonMCExpr::Create (
1993
+ Imm.setExpr (HexagonMCExpr::create (
1994
1994
MCBinaryExpr::createSub (Imm.getExpr (),
1995
1995
MCConstantExpr::create (1 , Context), Context),
1996
1996
Context));
@@ -2112,7 +2112,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
2112
2112
if (Value == 0 )
2113
2113
Inst.setOpcode (Hexagon::S2_vsathub);
2114
2114
else {
2115
- Imm.setExpr (HexagonMCExpr::Create (
2115
+ Imm.setExpr (HexagonMCExpr::create (
2116
2116
MCBinaryExpr::createSub (Imm.getExpr (),
2117
2117
MCConstantExpr::create (1 , Context), Context),
2118
2118
Context));
@@ -2144,7 +2144,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
2144
2144
TmpInst.addOperand (MCOperand::createReg (MatchRegisterName (Reg2)));
2145
2145
Inst = TmpInst;
2146
2146
} else {
2147
- Imm.setExpr (HexagonMCExpr::Create (
2147
+ Imm.setExpr (HexagonMCExpr::create (
2148
2148
MCBinaryExpr::createSub (Imm.getExpr (),
2149
2149
MCConstantExpr::create (1 , Context), Context),
2150
2150
Context));
@@ -2160,7 +2160,7 @@ int HexagonAsmParser::processInstruction(MCInst &Inst,
2160
2160
TmpInst.setOpcode (Hexagon::A2_subri);
2161
2161
TmpInst.addOperand (Rd);
2162
2162
TmpInst.addOperand (MCOperand::createExpr (
2163
- HexagonMCExpr::Create (MCConstantExpr::create (-1 , Context), Context)));
2163
+ HexagonMCExpr::create (MCConstantExpr::create (-1 , Context), Context)));
2164
2164
TmpInst.addOperand (Rs);
2165
2165
Inst = TmpInst;
2166
2166
break ;
0 commit comments