293 uint64_t ShiftAmount = cast<ConstantSDNode>(N->
getOperand(1))->getZExtValue();
316 while (ShiftAmount--) {
317 Victim = DAG.
getNode(Opc8, dl, VT, Victim);
323 SDValue AVRTargetLowering::LowerDivRem(SDValue Op, SelectionDAG &DAG)
const {
326 "Invalid opcode for Div/Rem lowering");
328 EVT VT = Op->getValueType(0);
329 Type *Ty = VT.getTypeForEVT(*DAG.getContext());
332 switch (VT.getSimpleVT().SimpleTy) {
349 SDValue InChain = DAG.getEntryNode();
352 TargetLowering::ArgListEntry Entry;
353 for (SDValue
const &Value : Op->op_values()) {
355 Entry.Ty = Value.getValueType().getTypeForEVT(*DAG.getContext());
356 Entry.IsSExt = IsSigned;
357 Entry.IsZExt = !IsSigned;
358 Args.push_back(Entry);
367 TargetLowering::CallLoweringInfo CLI(DAG);
372 .setSExtResult(IsSigned)
373 .setZExtResult(!IsSigned);
375 std::pair<SDValue, SDValue> CallInfo =
LowerCallTo(CLI);
376 return CallInfo.first;
379 SDValue AVRTargetLowering::LowerGlobalAddress(SDValue Op,
380 SelectionDAG &DAG)
const {
381 auto DL = DAG.getDataLayout();
383 const GlobalValue *GV = cast<GlobalAddressSDNode>(
Op)->getGlobal();
388 DAG.getTargetGlobalAddress(GV, SDLoc(Op),
getPointerTy(
DL), Offset);
392 SDValue AVRTargetLowering::LowerBlockAddress(SDValue Op,
393 SelectionDAG &DAG)
const {
394 auto DL = DAG.getDataLayout();
395 const BlockAddress *BA = cast<BlockAddressSDNode>(
Op)->getBlockAddress();
424 SDValue AVRTargetLowering::getAVRCmp(SDValue LHS, SDValue RHS,
ISD::CondCode CC,
425 SDValue &AVRcc, SelectionDAG &DAG,
428 EVT VT = LHS.getValueType();
429 bool UseTest =
false;
441 if (
const ConstantSDNode *
C = dyn_cast<ConstantSDNode>(RHS)) {
442 switch (
C->getSExtValue()) {
454 LHS = DAG.getConstant(0, DL, VT);
461 RHS = DAG.getConstant(
C->getSExtValue() + 1,
DL, VT);
474 if (
const ConstantSDNode *
C = dyn_cast<ConstantSDNode>(RHS)) {
475 switch (
C->getSExtValue()) {
480 LHS = DAG.getConstant(0, DL, VT);
504 if (
const ConstantSDNode *
C = dyn_cast<ConstantSDNode>(RHS)) {
505 RHS = DAG.getConstant(
C->getSExtValue() + 1,
DL, VT);
520 DAG.getIntPtrConstant(0, DL));
522 DAG.getIntPtrConstant(1, DL));
524 DAG.getIntPtrConstant(0, DL));
526 DAG.getIntPtrConstant(1, DL));
531 DAG.getIntPtrConstant(1, DL));
539 DAG.getIntPtrConstant(0, DL));
541 DAG.getIntPtrConstant(1, DL));
544 DAG.getIntPtrConstant(0, DL));
546 DAG.getIntPtrConstant(1, DL));
548 DAG.getIntPtrConstant(0, DL));
550 DAG.getIntPtrConstant(1, DL));
553 DAG.getIntPtrConstant(0, DL));
555 DAG.getIntPtrConstant(1, DL));
558 DAG.getIntPtrConstant(0, DL));
560 DAG.getIntPtrConstant(1, DL));
562 DAG.getIntPtrConstant(0, DL));
564 DAG.getIntPtrConstant(1, DL));
569 DAG.getIntPtrConstant(1, DL));
584 LHS, DAG.getIntPtrConstant(1, DL)));
600 SDValue AVRTargetLowering::LowerBR_CC(SDValue Op, SelectionDAG &DAG)
const {
601 SDValue Chain = Op.getOperand(0);
602 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(1))->
get();
603 SDValue LHS = Op.getOperand(2);
604 SDValue RHS = Op.getOperand(3);
605 SDValue Dest = Op.getOperand(4);
609 SDValue Cmp = getAVRCmp(LHS, RHS, CC, TargetCC, DAG, dl);
615 SDValue AVRTargetLowering::LowerSELECT_CC(SDValue Op, SelectionDAG &DAG)
const {
616 SDValue LHS = Op.getOperand(0);
617 SDValue RHS = Op.getOperand(1);
618 SDValue TrueV = Op.getOperand(2);
619 SDValue FalseV = Op.getOperand(3);
620 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(4))->
get();
624 SDValue Cmp = getAVRCmp(LHS, RHS, CC, TargetCC, DAG, dl);
626 SDVTList VTs = DAG.getVTList(Op.getValueType(),
MVT::Glue);
627 SDValue Ops[] = {TrueV, FalseV, TargetCC, Cmp};
632 SDValue AVRTargetLowering::LowerSETCC(SDValue Op, SelectionDAG &DAG)
const {
633 SDValue LHS = Op.getOperand(0);
634 SDValue RHS = Op.getOperand(1);
635 ISD::CondCode CC = cast<CondCodeSDNode>(Op.getOperand(2))->
get();
639 SDValue Cmp = getAVRCmp(LHS, RHS, CC, TargetCC, DAG, DL);
641 SDValue TrueV = DAG.getConstant(1, DL, Op.getValueType());
642 SDValue FalseV = DAG.getConstant(0, DL, Op.getValueType());
643 SDVTList VTs = DAG.getVTList(Op.getValueType(),
MVT::Glue);
644 SDValue Ops[] = {TrueV, FalseV, TargetCC, Cmp};
649 SDValue AVRTargetLowering::LowerVASTART(SDValue Op, SelectionDAG &DAG)
const {
650 const MachineFunction &MF = DAG.getMachineFunction();
651 const AVRMachineFunctionInfo *AFI = MF.getInfo<AVRMachineFunctionInfo>();
652 const Value *SV = cast<SrcValueSDNode>(Op.getOperand(2))->getValue();
653 auto DL = DAG.getDataLayout();
658 SDValue FI = DAG.getFrameIndex(AFI->getVarArgsFrameIndex(),
getPointerTy(DL));
660 return DAG.getStore(Op.getOperand(0), dl, FI, Op.getOperand(1),
661 MachinePointerInfo(SV), 0);
673 return LowerShifts(Op, DAG);
675 return LowerGlobalAddress(Op, DAG);
677 return LowerBlockAddress(Op, DAG);
679 return LowerBR_CC(Op, DAG);
681 return LowerSELECT_CC(Op, DAG);
683 return LowerSETCC(Op, DAG);
685 return LowerVASTART(Op, DAG);
688 return LowerDivRem(Op, DAG);
762 VT =
LD->getMemoryVT();
763 Op =
LD->getBasePtr().getNode();
769 }
else if (
const StoreSDNode *
ST = dyn_cast<StoreSDNode>(N)) {
770 VT =
ST->getMemoryVT();
771 Op =
ST->getBasePtr().getNode();
788 int RHSC = RHS->getSExtValue();
818 VT =
LD->getMemoryVT();
821 }
else if (
const StoreSDNode *
ST = dyn_cast<StoreSDNode>(N)) {
822 VT =
ST->getMemoryVT();
839 int RHSC = RHS->getSExtValue();
865 #include "AVRGenCallingConv.inc"
881 for (
unsigned i = 0, e = In.
size(); i != e;) {
884 while ((i != e) && (In[i].PartOffset ==
Offset)) {
885 Offset += In[i].VT.getStoreSize();
897 return G->getSymbol();
901 return G->getGlobal()->getName();
917 CCState &CCInfo,
bool IsCall,
bool IsVarArg) {
918 static const MCPhysReg RegList8[] = {AVR::R24, AVR::R22, AVR::R20,
919 AVR::R18, AVR::R16, AVR::R14,
920 AVR::R12, AVR::R10, AVR::R8};
921 static const MCPhysReg RegList16[] = {AVR::R25R24, AVR::R23R22, AVR::R21R20,
922 AVR::R19R18, AVR::R17R16, AVR::R15R14,
923 AVR::R13R12, AVR::R11R10, AVR::R9R8};
939 assert(F !=
nullptr &&
"function should not be null");
945 bool UsesStack =
false;
946 for (
unsigned i = 0, pos = 0, e = Args.
size(); i != e; ++i) {
947 unsigned Size = Args[i];
952 if (Size == 0)
continue;
954 MVT LocVT = (IsCall) ? (*Outs)[pos].VT : (*Ins)[pos].VT;
957 if (!UsesStack && (Size <= RegsLeft)) {
960 for (
unsigned j = 0; j !=
Size; ++j) {
974 for (
unsigned j = 0; j !=
Size; ++j) {
993 CCState &CCInfo,
bool IsCall,
bool IsVarArg) {
1000 CallConv, ArgLocs, CCInfo,
1011 CCState &CCInfo,
bool IsCall,
bool IsVarArg) {
1015 CallConv, ArgLocs, CCInfo,
1021 CallConv, ArgLocs, CCInfo,
1028 SDValue AVRTargetLowering::LowerFormalArguments(
1030 const SmallVectorImpl<ISD::InputArg> &
Ins,
const SDLoc &dl, SelectionDAG &DAG,
1031 SmallVectorImpl<SDValue> &InVals)
const {
1032 MachineFunction &MF = DAG.getMachineFunction();
1033 MachineFrameInfo &MFI = MF.getFrameInfo();
1034 auto DL = DAG.getDataLayout();
1037 SmallVector<CCValAssign, 16> ArgLocs;
1038 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs,
1045 for (CCValAssign &VA : ArgLocs) {
1048 if (VA.isRegLoc()) {
1049 EVT RegVT = VA.getLocVT();
1050 const TargetRegisterClass *RC;
1052 RC = &AVR::GPR8RegClass;
1054 RC = &AVR::DREGSRegClass;
1059 unsigned Reg = MF.addLiveIn(VA.getLocReg(), RC);
1060 ArgValue = DAG.getCopyFromReg(Chain, dl, Reg, RegVT);
1068 switch (VA.getLocInfo()) {
1074 ArgValue = DAG.getNode(
ISD::BITCAST, dl, VA.getValVT(), ArgValue);
1078 DAG.getValueType(VA.getValVT()));
1079 ArgValue = DAG.getNode(
ISD::TRUNCATE, dl, VA.getValVT(), ArgValue);
1083 DAG.getValueType(VA.getValVT()));
1084 ArgValue = DAG.getNode(
ISD::TRUNCATE, dl, VA.getValVT(), ArgValue);
1088 InVals.push_back(ArgValue);
1093 EVT LocVT = VA.getLocVT();
1096 int FI = MFI.CreateFixedObject(LocVT.getSizeInBits() / 8,
1097 VA.getLocMemOffset(),
true);
1102 InVals.push_back(DAG.getLoad(LocVT, dl, Chain, FIN,
1111 unsigned StackSize = CCInfo.getNextStackOffset();
1112 AVRMachineFunctionInfo *AFI = MF.getInfo<AVRMachineFunctionInfo>();
1114 AFI->setVarArgsFrameIndex(MFI.CreateFixedObject(2, StackSize,
true));
1124 SDValue AVRTargetLowering::LowerCall(TargetLowering::CallLoweringInfo &CLI,
1125 SmallVectorImpl<SDValue> &InVals)
const {
1126 SelectionDAG &DAG = CLI.DAG;
1128 SmallVectorImpl<ISD::OutputArg> &Outs = CLI.Outs;
1129 SmallVectorImpl<SDValue> &OutVals = CLI.OutVals;
1130 SmallVectorImpl<ISD::InputArg> &Ins = CLI.Ins;
1131 SDValue Chain = CLI.Chain;
1132 SDValue Callee = CLI.Callee;
1133 bool &isTailCall = CLI.IsTailCall;
1135 bool isVarArg = CLI.IsVarArg;
1137 MachineFunction &MF = DAG.getMachineFunction();
1143 SmallVector<CCValAssign, 16> ArgLocs;
1144 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), ArgLocs,
1151 if (
const GlobalAddressSDNode *
G = dyn_cast<GlobalAddressSDNode>(Callee)) {
1152 const GlobalValue *GV =
G->getGlobal();
1154 F = cast<Function>(GV);
1156 DAG.getTargetGlobalAddress(GV, DL,
getPointerTy(DAG.getDataLayout()));
1157 }
else if (
const ExternalSymbolSDNode *ES =
1158 dyn_cast<ExternalSymbolSDNode>(Callee)) {
1159 Callee = DAG.getTargetExternalSymbol(
ES->getSymbol(),
1163 analyzeArguments(&CLI, F, &DAG.getDataLayout(), &Outs, 0, CallConv, ArgLocs, CCInfo,
1167 unsigned NumBytes = CCInfo.getNextStackOffset();
1169 Chain = DAG.getCALLSEQ_START(Chain, NumBytes, 0, DL);
1171 SmallVector<std::pair<unsigned, SDValue>, 8> RegsToPass;
1175 bool HasStackArgs =
false;
1176 for (AI = 0, AE = ArgLocs.size(); AI != AE; ++AI) {
1177 CCValAssign &VA = ArgLocs[AI];
1178 EVT RegVT = VA.getLocVT();
1179 SDValue Arg = OutVals[AI];
1182 switch (VA.getLocInfo()) {
1203 if (VA.isMemLoc()) {
1204 HasStackArgs =
true;
1210 RegsToPass.push_back(std::make_pair(VA.getLocReg(), Arg));
1218 for (AE = AI, AI = ArgLocs.size(); AI != AE; --AI) {
1219 unsigned Loc = AI - 1;
1220 CCValAssign &VA = ArgLocs[Loc];
1221 SDValue Arg = OutVals[Loc];
1226 SDValue PtrOff = DAG.getNode(
1228 DAG.getRegister(AVR::SP,
getPointerTy(DAG.getDataLayout())),
1229 DAG.getIntPtrConstant(VA.getLocMemOffset() + 1,
DL));
1232 DAG.getStore(Chain, DL, Arg, PtrOff,
1242 for (
auto Reg : RegsToPass) {
1243 Chain = DAG.getCopyToReg(Chain, DL, Reg.first, Reg.second, InFlag);
1244 InFlag = Chain.getValue(1);
1249 SmallVector<SDValue, 8> Ops;
1250 Ops.push_back(Chain);
1251 Ops.push_back(Callee);
1255 for (
auto Reg : RegsToPass) {
1256 Ops.push_back(DAG.getRegister(Reg.first, Reg.second.getValueType()));
1263 TRI->getCallPreservedMask(DAG.getMachineFunction(), CallConv);
1264 assert(Mask &&
"Missing call preserved mask for calling convention");
1265 Ops.push_back(DAG.getRegisterMask(Mask));
1267 if (InFlag.getNode()) {
1268 Ops.push_back(InFlag);
1272 InFlag = Chain.getValue(1);
1275 Chain = DAG.getCALLSEQ_END(Chain, DAG.getIntPtrConstant(NumBytes, DL,
true),
1276 DAG.getIntPtrConstant(0, DL,
true), InFlag,
DL);
1279 InFlag = Chain.getValue(1);
1284 return LowerCallResult(Chain, InFlag, CallConv, isVarArg, Ins, DL, DAG,
1291 SDValue AVRTargetLowering::LowerCallResult(
1292 SDValue Chain, SDValue InFlag,
CallingConv::ID CallConv,
bool isVarArg,
1293 const SmallVectorImpl<ISD::InputArg> &Ins,
const SDLoc &dl, SelectionDAG &DAG,
1294 SmallVectorImpl<SDValue> &InVals)
const {
1297 SmallVector<CCValAssign, 16> RVLocs;
1298 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), RVLocs,
1302 auto CCFunction = CCAssignFnForReturn(CallConv);
1303 CCInfo.AnalyzeCallResult(Ins, CCFunction);
1312 for (CCValAssign
const &RVLoc : RVLocs) {
1313 Chain = DAG.getCopyFromReg(Chain, dl, RVLoc.getLocReg(), RVLoc.getValVT(),
1316 InFlag = Chain.getValue(2);
1317 InVals.push_back(Chain.getValue(0));
1330 return RetCC_AVR_BUILTIN;
1338 MachineFunction &MF,
bool isVarArg,
1339 const SmallVectorImpl<ISD::OutputArg> &Outs,
1342 SmallVector<CCValAssign, 16> RVLocs;
1343 CCState CCInfo(CallConv, isVarArg, MF, RVLocs, Context);
1345 auto CCFunction = CCAssignFnForReturn(CallConv);
1346 return CCInfo.CheckReturn(Outs, CCFunction);
1350 AVRTargetLowering::LowerReturn(SDValue Chain,
CallingConv::ID CallConv,
1352 const SmallVectorImpl<ISD::OutputArg> &Outs,
1353 const SmallVectorImpl<SDValue> &OutVals,
1354 const SDLoc &dl, SelectionDAG &DAG)
const {
1356 SmallVector<CCValAssign, 16> RVLocs;
1359 CCState CCInfo(CallConv, isVarArg, DAG.getMachineFunction(), RVLocs,
1363 auto CCFunction = CCAssignFnForReturn(CallConv);
1364 CCInfo.AnalyzeReturn(Outs, CCFunction);
1368 MachineFunction &MF = DAG.getMachineFunction();
1369 unsigned e = RVLocs.size();
1378 SmallVector<SDValue, 4> RetOps(1, Chain);
1380 for (
unsigned i = 0; i != e; ++i) {
1381 CCValAssign &VA = RVLocs[i];
1382 assert(VA.isRegLoc() &&
"Can only return in registers!");
1384 Chain = DAG.getCopyToReg(Chain, dl, VA.getLocReg(), OutVals[i],
Flag);
1387 Flag = Chain.getValue(1);
1388 RetOps.push_back(DAG.getRegister(VA.getLocReg(), VA.getLocVT()));
1393 if (MF.getFunction()->getAttributes().hasAttribute(
1405 if (Flag.getNode()) {
1406 RetOps.push_back(Flag);
1409 return DAG.getNode(RetOpc, dl,
MVT::Other, RetOps);
1416 MachineBasicBlock *AVRTargetLowering::insertShift(MachineInstr &
MI,
1417 MachineBasicBlock *BB)
const {
1419 const TargetRegisterClass *RC;
1420 MachineFunction *F = BB->getParent();
1421 MachineRegisterInfo &RI = F->getRegInfo();
1423 const TargetInstrInfo &
TII = *TM.getSubtargetImpl()->getInstrInfo();
1424 DebugLoc dl = MI.getDebugLoc();
1426 switch (MI.getOpcode()) {
1431 RC = &AVR::GPR8RegClass;
1435 RC = &AVR::DREGSRegClass;
1439 RC = &AVR::GPR8RegClass;
1443 RC = &AVR::DREGSRegClass;
1447 RC = &AVR::GPR8RegClass;
1451 RC = &AVR::DREGSRegClass;
1455 RC = &AVR::GPR8RegClass;
1459 RC = &AVR::DREGSRegClass;
1463 RC = &AVR::GPR8RegClass;
1467 RC = &AVR::DREGSRegClass;
1471 const BasicBlock *LLVM_BB = BB->getBasicBlock();
1476 MachineBasicBlock *LoopBB = F->CreateMachineBasicBlock(LLVM_BB);
1477 MachineBasicBlock *RemBB = F->CreateMachineBasicBlock(LLVM_BB);
1479 F->insert(I, LoopBB);
1480 F->insert(I, RemBB);
1486 RemBB->transferSuccessorsAndUpdatePHIs(BB);
1489 BB->addSuccessor(LoopBB);
1490 BB->addSuccessor(RemBB);
1491 LoopBB->addSuccessor(RemBB);
1492 LoopBB->addSuccessor(LoopBB);
1494 unsigned ShiftAmtReg = RI.createVirtualRegister(&AVR::LD8RegClass);
1495 unsigned ShiftAmtReg2 = RI.createVirtualRegister(&AVR::LD8RegClass);
1496 unsigned ShiftReg = RI.createVirtualRegister(RC);
1497 unsigned ShiftReg2 = RI.createVirtualRegister(RC);
1498 unsigned ShiftAmtSrcReg = MI.getOperand(2).getReg();
1499 unsigned SrcReg = MI.getOperand(1).getReg();
1500 unsigned DstReg = MI.getOperand(0).getReg();
1505 BuildMI(BB, dl, TII.get(AVR::CPIRdK)).addReg(ShiftAmtSrcReg).
addImm(0);
1506 BuildMI(BB, dl, TII.get(AVR::BREQk)).addMBB(RemBB);
1513 BuildMI(LoopBB, dl, TII.get(AVR::PHI), ShiftReg)
1518 BuildMI(LoopBB, dl, TII.get(AVR::PHI), ShiftAmtReg)
1519 .addReg(ShiftAmtSrcReg)
1523 BuildMI(LoopBB, dl, TII.get(Opc), ShiftReg2).addReg(ShiftReg);
1524 BuildMI(LoopBB, dl, TII.get(AVR::SUBIRdK), ShiftAmtReg2)
1525 .addReg(ShiftAmtReg)
1527 BuildMI(LoopBB, dl, TII.get(AVR::BRNEk)).addMBB(LoopBB);
1531 BuildMI(*RemBB, RemBB->begin(), dl, TII.get(AVR::PHI), DstReg)
1537 MI.eraseFromParent();
1542 if (I->getOpcode() == AVR::COPY) {
1543 unsigned SrcReg = I->getOperand(1).getReg();
1544 return (SrcReg == AVR::R0 || SrcReg == AVR::R1);
1553 MachineBasicBlock *AVRTargetLowering::insertMul(MachineInstr &MI,
1554 MachineBasicBlock *BB)
const {
1563 BuildMI(*BB, I, MI.getDebugLoc(), TII.get(AVR::EORRdRr), AVR::R1)
1587 return insertShift(MI, MBB);
1590 return insertMul(MI, MBB);
1593 assert((Opc == AVR::Select16 || Opc == AVR::Select8) &&
1594 "Unexpected instr type to insert");
1614 for (I = MF->
begin(); I != MF->
end() && &(*I) != MBB; ++
I);
1615 if (I != MF->
end()) ++I;
1628 BuildMI(MBB, dl, TII.get(AVR::RJMPk)).addMBB(falseMBB);
1633 BuildMI(falseMBB, dl, TII.get(AVR::RJMPk)).addMBB(trueMBB);
1653 if (Constraint.
size() == 1) {
1655 switch (Constraint[0]) {
1695 switch (ConstraintCode[0]) {
1711 if (!CallOperandVal) {
1716 switch (*constraint) {
1737 if (
const ConstantFP *
C = dyn_cast<ConstantFP>(CallOperandVal)) {
1744 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1745 if (isUInt<6>(
C->getZExtValue())) {
1751 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1752 if ((
C->getSExtValue() >= -63) && (
C->getSExtValue() <= 0)) {
1758 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1759 if (
C->getZExtValue() == 2) {
1765 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1766 if (
C->getZExtValue() == 0) {
1772 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1779 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1780 if (
C->getSExtValue() == -1) {
1786 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1787 if ((
C->getZExtValue() == 8) || (
C->getZExtValue() == 16) ||
1788 (
C->getZExtValue() == 24)) {
1794 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1795 if (
C->getZExtValue() == 1) {
1801 if (
const ConstantInt *
C = dyn_cast<ConstantInt>(CallOperandVal)) {
1802 if ((
C->getSExtValue() >= -6) && (
C->getSExtValue() <= 5)) {
1815 std::pair<unsigned, const TargetRegisterClass *>
1820 .getSubtargetImpl();
1827 if (Constraint.
size() == 1) {
1828 switch (Constraint[0]) {
1830 return std::make_pair(0U, &AVR::LD8loRegClass);
1832 return std::make_pair(0U, &AVR::PTRDISPREGSRegClass);
1834 return std::make_pair(0U, &AVR::LD8RegClass);
1836 return std::make_pair(0U, &AVR::GPR8loRegClass);
1838 return std::make_pair(0U, &AVR::PTRREGSRegClass);
1840 return std::make_pair(0U, &AVR::GPRSPRegClass);
1843 return std::make_pair(0U, &AVR::GPR8RegClass);
1846 return std::make_pair(0U, &AVR::DREGSRegClass);
1848 return std::make_pair(
unsigned(AVR::R0), &AVR::GPR8RegClass);
1850 return std::make_pair(0U, &AVR::IWREGSRegClass);
1853 return std::make_pair(
unsigned(AVR::R27R26), &AVR::PTRREGSRegClass);
1856 return std::make_pair(
unsigned(AVR::R29R28), &AVR::PTRREGSRegClass);
1859 return std::make_pair(
unsigned(AVR::R31R30), &AVR::PTRREGSRegClass);
1870 std::string &Constraint,
1871 std::vector<SDValue> &Ops,
1878 if (Constraint.length() != 1) {
1882 char ConstraintLetter = Constraint[0];
1883 switch (ConstraintLetter) {
1903 switch (ConstraintLetter) {
1905 if (!isUInt<6>(CUVal64))
1910 if (CVal64 < -63 || CVal64 > 0)
1941 if (CUVal64 != 8 && CUVal64 != 16 && CUVal64 != 24)
1951 if (CVal64 < -6 || CVal64 > 5)
1961 if (!FC || !FC->
isZero())
1969 Ops.push_back(Result);
1986 .
Case(
"r9", AVR::R9).
Case(
"r10", AVR::R10).
Case(
"r11", AVR::R11)
1987 .
Case(
"r12", AVR::R12).
Case(
"r13", AVR::R13).
Case(
"r14", AVR::R14)
1988 .
Case(
"r15", AVR::R15).
Case(
"r16", AVR::R16).
Case(
"r17", AVR::R17)
1989 .
Case(
"r18", AVR::R18).
Case(
"r19", AVR::R19).
Case(
"r20", AVR::R20)
1990 .
Case(
"r21", AVR::R21).
Case(
"r22", AVR::R22).
Case(
"r23", AVR::R23)
1991 .
Case(
"r24", AVR::R24).
Case(
"r25", AVR::R25).
Case(
"r26", AVR::R26)
1992 .
Case(
"r27", AVR::R27).
Case(
"r28", AVR::R28).
Case(
"r29", AVR::R29)
1993 .
Case(
"r30", AVR::R30).
Case(
"r31", AVR::R31)
1994 .
Case(
"X", AVR::R27R26).
Case(
"Y", AVR::R29R28).
Case(
"Z", AVR::R31R30)
1998 .Case(
"r0", AVR::R1R0).
Case(
"r2", AVR::R3R2)
1999 .
Case(
"r4", AVR::R5R4).
Case(
"r6", AVR::R7R6)
2000 .
Case(
"r8", AVR::R9R8).
Case(
"r10", AVR::R11R10)
2001 .
Case(
"r12", AVR::R13R12).
Case(
"r14", AVR::R15R14)
2002 .
Case(
"r16", AVR::R17R16).
Case(
"r18", AVR::R19R18)
2003 .
Case(
"r20", AVR::R21R20).
Case(
"r22", AVR::R23R22)
2004 .
Case(
"r24", AVR::R25R24).
Case(
"r26", AVR::R27R26)
2005 .
Case(
"r28", AVR::R29R28).
Case(
"r30", AVR::R31R30)
2006 .
Case(
"X", AVR::R27R26).
Case(
"Y", AVR::R29R28).
Case(
"Z", AVR::R31R30)
static StringRef getFunctionName(TargetLowering::CallLoweringInfo &CLI)
BITCAST - This operator converts between integer, vector and FP values, as if the value was stored to...
void push_back(const T &Elt)
const MachineFunction * getParent() const
Return the MachineFunction containing this basic block.
A parsed version of the target data layout string in and methods for querying it. ...
CallingConv::ID getLibcallCallingConv(RTLIB::Libcall Call) const
Get the CallingConv that should be used for the specified libcall.
SDValue getValue(unsigned R) const
This represents an addressing mode of: BaseGV + BaseOffs + BaseReg + Scale*ScaleReg If BaseGV is null...
void setLoadExtAction(unsigned ExtType, MVT ValVT, MVT MemVT, LegalizeAction Action)
Indicate that the specified load with extension does not work with the specified type and indicate wh...
virtual ConstraintType getConstraintType(StringRef Constraint) const
Given a constraint, return the type of constraint it is for this target.
EXTRACT_ELEMENT - This is used to get the lower or upper (determined by a Constant, which is required to be operand #1) half of the integer or float value specified as operand #0.
This class represents an incoming formal argument to a Function.
void setMinimumJumpTableEntries(unsigned Val)
Indicate the minimum number of blocks to generate jump tables.
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
BR_CC - Conditional branch.
SDValue LowerOperation(SDValue Op, SelectionDAG &DAG) const override
This callback is invoked for operations that are unsupported by the target, which are registered to u...
bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty, unsigned AS) const override
Return true if the addressing mode represented by AM is legal for this target, for a load/store of th...
Calling convention used for AVR signal routines.
const TargetMachine & getTargetMachine() const
const AVRSubtarget * getSubtargetImpl() const
bool getPostIndexedAddressParts(SDNode *N, SDNode *Op, SDValue &Base, SDValue &Offset, ISD::MemIndexedMode &AM, SelectionDAG &DAG) const override
Returns true by value, base pointer and offset pointer and addressing mode by reference if this node ...
void AnalyzeFormalArguments(const SmallVectorImpl< ISD::InputArg > &Ins, CCAssignFn Fn)
AnalyzeFormalArguments - Analyze an array of argument values, incorporating info about the formals in...
void transferSuccessorsAndUpdatePHIs(MachineBasicBlock *FromMBB)
Transfers all the successors, as in transferSuccessors, and update PHI operands in the successor bloc...
STACKRESTORE has two operands, an input chain and a pointer to restore to it returns an output chain...
Libcall
RTLIB::Libcall enum - This enum defines all of the runtime library calls the backend can emit...
bool CCAssignFn(unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
CCAssignFn - This function assigns a location for Val, updating State to reflect the change...
unsigned getOpcode() const
Return the SelectionDAG opcode value for this node.
A wrapper node for TargetConstantPool, TargetExternalSymbol, and TargetGlobalAddress.
Function Alias Analysis Results
void setBooleanVectorContents(BooleanContent Ty)
Specify how the target extends the result of a vector boolean value from a vector of i1 to a wider ty...
Test for zero or minus instruction.
const SDValue & getOperand(unsigned Num) const
SDValue getNode(unsigned Opcode, const SDLoc &DL, EVT VT, ArrayRef< SDUse > Ops)
Gets or creates the specified node.
ConstraintType getConstraintType(StringRef Constraint) const override
Given a constraint, return the type of constraint it is for this target.
Compare with carry instruction.
Value * CallOperandVal
If this is the result output operand or a clobber, this is null, otherwise it is the incoming operand...
LLVMContext & getContext() const
Select with condition operator - This selects between a true value and a false value (ops #2 and #3) ...
static void parseExternFuncCallArgs(const SmallVectorImpl< ISD::OutputArg > &In, SmallVectorImpl< unsigned > &Out)
For external symbols there is no function prototype information so we have to rely directly on argume...
void setTruncStoreAction(MVT ValVT, MVT MemVT, LegalizeAction Action)
Indicate that the specified truncating store does not work with the specified type and indicate what ...
SDIVREM/UDIVREM - Divide two integers and produce both a quotient and remainder result.
SHL_PARTS/SRA_PARTS/SRL_PARTS - These operators are used for expanded integer shift operations...
bool isVector() const
Return true if this is a vector value type.
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Represents an abstract call instruction, which includes a bunch of information.
A loop of single right bit rotate instructions.
const HexagonInstrInfo * TII
Shift and rotation operations.
bool isProgramMemoryAccess(MemSDNode const *N)
EVT getValueType(unsigned ResNo) const
Return the type of a specified result.
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void eraseFromParent()
Unlink 'this' from the containing basic block and delete it.
void addLoc(const CCValAssign &V)
LLVM_ATTRIBUTE_ALWAYS_INLINE R Default(const T &Value) const
Reg
All possible values of the reg field in the ModR/M byte.
Val, OUTCHAIN = ATOMIC_SWAP(INCHAIN, ptr, amt) Val, OUTCHAIN = ATOMIC_LOAD_[OpName](INCHAIN, ptr, amt) For double-word atomic operations: ValLo, ValHi, OUTCHAIN = ATOMIC_SWAP(INCHAIN, ptr, amtLo, amtHi) ValLo, ValHi, OUTCHAIN = ATOMIC_LOAD_[OpName](INCHAIN, ptr, amtLo, amtHi) These correspond to the atomicrmw instruction.
void setOperationAction(unsigned Op, MVT VT, LegalizeAction Action)
Indicate that the specified operation does not work with the specified type and indicate what to do a...
const MachineInstrBuilder & addImm(int64_t Val) const
Add a new immediate operand.
This class defines information used to lower LLVM code to legal SelectionDAG operators that the targe...
STACKSAVE - STACKSAVE has one operand, an input chain.
auto reverse(ContainerTy &&C, typename std::enable_if< has_rbegin< ContainerTy >::value >::type *=nullptr) -> decltype(make_range(C.rbegin(), C.rend()))
LLVM_ATTRIBUTE_ALWAYS_INLINE StringSwitch & Case(const char(&S)[N], const T &Value)
A generic AVR implementation.
Utilities related to the AVR instruction set.
void computeRegisterProperties(const TargetRegisterInfo *TRI)
Once all of the register classes are added, this allows us to compute derived properties we expose...
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE bool startswith(StringRef Prefix) const
Check if this string starts with the given Prefix.
std::pair< SDValue, SDValue > LowerCallTo(CallLoweringInfo &CLI) const
This function lowers an abstract call to a function into an actual call.
unsigned getNumValues() const
Return the number of values defined/returned by this operator.
This contains information for each constraint that we are lowering.
Simple integer binary arithmetic operators.
unsigned getInlineAsmMemConstraint(StringRef ConstraintCode) const override
EVT getSetCCResultType(const DataLayout &DL, LLVMContext &Context, EVT VT) const override
Return the ValueType of the result of SETCC operations.
CondCode
ISD::CondCode enum - These are ordered carefully to make the bitfields below work out...
static Error getOffset(const SymbolRef &Sym, SectionRef Sec, uint64_t &Result)
SDValue getTargetConstant(uint64_t Val, const SDLoc &DL, EVT VT, bool isOpaque=false)
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
LLVM_NODISCARD LLVM_ATTRIBUTE_ALWAYS_INLINE size_t size() const
size - Get the string size.
Used for AVR interrupt routines.
const char * getTargetNodeName(unsigned Opcode) const override
This method returns the name of a target specific DAG node.
MachineBasicBlock * CreateMachineBasicBlock(const BasicBlock *bb=nullptr)
CreateMachineBasicBlock - Allocate a new MachineBasicBlock.
static MachinePointerInfo getStack(MachineFunction &MF, int64_t Offset)
Stack pointer relative access.
BasicBlockListType::iterator iterator
const BasicBlock * getBasicBlock() const
Return the LLVM basic block that this instance corresponded to originally.
This class is used to represent ISD::STORE nodes.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
static CCValAssign getReg(unsigned ValNo, MVT ValVT, unsigned RegNo, MVT LocVT, LocInfo HTP)
Flag
These should be considered private to the implementation of the MCInstrDesc class.
const MachineBasicBlock * getParent() const
SDNode * getNode() const
get the SDNode which holds the desired result
MachineInstrBuilder BuildMI(MachineFunction &MF, const DebugLoc &DL, const MCInstrDesc &MCID)
Builder interface. Specify how to create the initial instruction itself.
A switch()-like statement whose cases are string literals.
MachineInstrBundleIterator< MachineInstr > iterator
constexpr bool isUInt< 8 >(uint64_t x)
bool isZero() const
Return true if the value is positive or negative zero.
LLVM Basic Block Representation.
The instances of the Type class are immutable: once they are created, they are never changed...
This is an important class for using LLVM in a threaded context.
void addRegisterClass(MVT VT, const TargetRegisterClass *RC)
Add the specified register class as an available regclass for the specified value type...
static void analyzeStandardArguments(TargetLowering::CallLoweringInfo *CLI, const Function *F, const DataLayout *TD, const SmallVectorImpl< ISD::OutputArg > *Outs, const SmallVectorImpl< ISD::InputArg > *Ins, CallingConv::ID CallConv, SmallVectorImpl< CCValAssign > &ArgLocs, CCState &CCInfo, bool IsCall, bool IsVarArg)
Analyze incoming and outgoing function arguments.
VAEND, VASTART - VAEND and VASTART have three operands: an input chain, pointer, and a SRCVALUE...
LLVM_ATTRIBUTE_ALWAYS_INLINE iterator begin()
constexpr char Args[]
Key for Kernel::Metadata::mArgs.
const MachineOperand & getOperand(unsigned i) const
ConstantFP - Floating Point Values [float, double].
Calling convention used for special AVR rtlib functions which have an "optimized" convention to prese...
void setBooleanContents(BooleanContent Ty)
Specify how the target extends the result of integer and floating point boolean values from i1 to a w...
bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const override
Return true if folding a constant offset with the given GlobalAddress is legal.
bool getPreIndexedAddressParts(SDNode *N, SDValue &Base, SDValue &Offset, ISD::MemIndexedMode &AM, SelectionDAG &DAG) const override
Returns true by value, base pointer and offset pointer and addressing mode by reference if the node's...
virtual std::pair< unsigned, const TargetRegisterClass * > getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI, StringRef Constraint, MVT VT) const
Given a physical register constraint (e.g.
void ReplaceNodeResults(SDNode *N, SmallVectorImpl< SDValue > &Results, SelectionDAG &DAG) const override
Replace a node with an illegal result type with a new node built out of custom code.
unsigned getOpcode() const
AssertSext, AssertZext - These nodes record if a register contains a value that has already been zero...
AVR conditional branches.
VAARG - VAARG has four operands: an input chain, a pointer, a SRCVALUE, and the alignment.
static void parseFunctionArgs(const Function *F, const DataLayout *TD, SmallVectorImpl< unsigned > &Out)
For each argument in a function store the number of pieces it is composed of.
CondCodes
AVR specific condition codes.
Val, OUTCHAIN = ATOMIC_CMP_SWAP(INCHAIN, ptr, cmp, swap) For double-word atomic operations: ValLo...
std::vector< ArgListEntry > ArgListTy
TargetRegisterInfo base class - We assume that the target defines a static array of TargetRegisterDes...
This structure contains all information that is necessary for lowering calls.
void setLibcallCallingConv(RTLIB::Libcall Call, CallingConv::ID CC)
Set the CallingConv that should be used for the specified libcall.
AVRTargetLowering(AVRTargetMachine &TM)
virtual const TargetSubtargetInfo * getSubtargetImpl(const Function &) const
Virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInf...
A loop of single logical shift right instructions.
unsigned getABITypeAlignment(Type *Ty) const
Returns the minimum ABI-required alignment for the specified type.
Iterator for intrusive lists based on ilist_node.
CCState - This class holds information needed while lowering arguments and return values...
void addSuccessor(MachineBasicBlock *Succ, BranchProbability Prob=BranchProbability::getUnknown())
Add Succ as a successor of this MachineBasicBlock.
This is the shared class of boolean and integer constants.
static void analyzeBuiltinArguments(TargetLowering::CallLoweringInfo &CLI, const Function *F, const DataLayout *TD, const SmallVectorImpl< ISD::OutputArg > *Outs, const SmallVectorImpl< ISD::InputArg > *Ins, CallingConv::ID CallConv, SmallVectorImpl< CCValAssign > &ArgLocs, CCState &CCInfo, bool IsCall, bool IsVarArg)
const char * getLibcallName(RTLIB::Libcall Call) const
Get the libcall routine name for the specified libcall.
uint64_t getTypeAllocSize(Type *Ty) const
Returns the offset in bytes between successive objects of the specified type, including alignment pad...
static StructType * get(LLVMContext &Context, ArrayRef< Type * > Elements, bool isPacked=false)
This static method is the primary way to create a literal StructType.
This is used to represent a portion of an LLVM function in a low-level Data Dependence DAG representa...
unsigned getRegisterByName(const char *RegName, EVT VT, SelectionDAG &DAG) const override
Return the register ID of the name passed in.
virtual unsigned getInlineAsmMemConstraint(StringRef ConstraintCode) const
constexpr size_t array_lengthof(T(&)[N])
Find the length of an array.
A loop of single left bit rotate instructions.
BRCOND - Conditional branch.
Byte Swap and Counting operators.
Wrapper class for IR location info (IR ordering and DebugLoc) to be passed into SDNode creation funct...
Represents one node in the SelectionDAG.
static mvt_range integer_valuetypes()
void swap(llvm::BitVector &LHS, llvm::BitVector &RHS)
Implement std::swap in terms of BitVector swap.
void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint, std::vector< SDValue > &Ops, SelectionDAG &DAG) const override
Lower the specified operand into the Ops vector.
void setIndexedLoadAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed load does or does not work with the specified type and indicate w...
Select(COND, TRUEVAL, FALSEVAL).
void setMinFunctionAlignment(unsigned Align)
Set the target's minimum function alignment (in log2(bytes))
int64_t getSExtValue() const
ZERO_EXTEND - Used for integer types, zeroing the new bits.
void AnalyzeCallOperands(const SmallVectorImpl< ISD::OutputArg > &Outs, CCAssignFn Fn)
AnalyzeCallOperands - Analyze the outgoing arguments to a call, incorporating info about the passed v...
ANY_EXTEND - Used for integer types. The high bits are undefined.
const DebugLoc & getDebugLoc() const
Returns the debug location id of this MachineInstr.
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
llvm_unreachable("Unknown RegBank!")
A loop of single logical shift left instructions.
MachineBasicBlock * EmitInstrWithCustomInserter(MachineInstr &MI, MachineBasicBlock *MBB) const override
This method should be implemented by targets that mark instructions with the 'usesCustomInserter' fla...
static MachinePointerInfo getFixedStack(MachineFunction &MF, int FI, int64_t Offset=0)
Return a MachinePointerInfo record that refers to the specified FrameIndex.
BR_JT - Jumptable branch.
Representation of each machine instruction.
VACOPY - VACOPY has 5 operands: an input chain, a destination pointer, a source pointer, a SRCVALUE for the destination, and a SRCVALUE for the source.
void splice(iterator Where, MachineBasicBlock *Other, iterator From)
Take an instruction from MBB 'Other' at the position From, and insert it into this MBB right before '...
virtual void LowerAsmOperandForConstraint(SDValue Op, std::string &Constraint, std::vector< SDValue > &Ops, SelectionDAG &DAG) const
Lower the specified operand into the Ops vector.
SMUL_LOHI/UMUL_LOHI - Multiply two integers of type iN, producing a signed/unsigned value of type i[2...
SIGN_EXTEND_INREG - This operator atomically performs a SHL/SRA pair to sign extend a small value in ...
static bool isCopyMulResult(MachineBasicBlock::iterator const &I)
A loop of single arithmetic shift right instructions.
LLVM_ATTRIBUTE_ALWAYS_INLINE size_type size() const
void setStackPointerRegisterToSaveRestore(unsigned R)
If set to a physical register, this specifies the register that llvm.savestack/llvm.restorestack should save and restore.
static void analyzeArguments(TargetLowering::CallLoweringInfo *CLI, const Function *F, const DataLayout *TD, const SmallVectorImpl< ISD::OutputArg > *Outs, const SmallVectorImpl< ISD::InputArg > *Ins, CallingConv::ID CallConv, SmallVectorImpl< CCValAssign > &ArgLocs, CCState &CCInfo, bool IsCall, bool IsVarArg)
void setLibcallName(RTLIB::Libcall Call, const char *Name)
Rename the default libcall routine name for the specified libcall.
LLVM_NODISCARD std::enable_if<!is_simple_type< Y >::value, typename cast_retty< X, const Y >::ret_type >::type dyn_cast(const Y &Val)
static CCValAssign getMem(unsigned ValNo, MVT ValVT, unsigned Offset, MVT LocVT, LocInfo HTP)
EVT getValueType() const
Return the ValueType of the referenced return value.
SDValue getConstant(uint64_t Val, const SDLoc &DL, EVT VT, bool isTarget=false, bool isOpaque=false)
Create a ConstantSDNode wrapping a constant value.
unsigned getReg() const
getReg - Returns the register number.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
void insert(iterator MBBI, MachineBasicBlock *MBB)
Operand 0 and operand 1 are selection variable, operand 2 is condition code and operand 3 is flag ope...
MVT getPointerTy(const DataLayout &DL, uint32_t AS=0) const
Return the pointer type for the given address space, defaults to the pointer type from the data layou...
void setSchedulingPreference(Sched::Preference Pref)
Specify the target scheduling preference.
virtual const TargetInstrInfo * getInstrInfo() const
LLVM Value Representation.
std::pair< unsigned, const TargetRegisterClass * > getRegForInlineAsmConstraint(const TargetRegisterInfo *TRI, StringRef Constraint, MVT VT) const override
Given a physical register constraint (e.g.
const MachineInstrBuilder & addMBB(MachineBasicBlock *MBB, unsigned char TargetFlags=0) const
std::underlying_type< E >::type Mask()
Get a bitmask with 1s in all places up to the high-order bit of E's largest value.
const AVRRegisterInfo * getRegisterInfo() const override
uint64_t getTypeSizeInBits(Type *Ty) const
Size examples:
virtual const TargetRegisterInfo * getRegisterInfo() const
getRegisterInfo - If register information is available, return it.
StringRef - Represent a constant reference to a string, i.e.
SetCC operator - This evaluates to a true value iff the condition is true.
const MCInstrDesc & getBrCond(AVRCC::CondCodes CC) const
ConstraintWeight getSingleConstraintMatchWeight(AsmOperandInfo &info, const char *constraint) const override
Examine constraint string and operand type and determine a weight value.
TRUNCATE - Completely drop the high bits.
unsigned AllocateReg(unsigned Reg)
AllocateReg - Attempt to allocate one register.
virtual ConstraintWeight getSingleConstraintMatchWeight(AsmOperandInfo &info, const char *constraint) const
Examine constraint string and operand type and determine a weight value.
Unlike LLVM values, Selection DAG nodes may return multiple values as the result of a computation...
const MachineInstrBuilder & addReg(unsigned RegNo, unsigned flags=0, unsigned SubReg=0) const
Add a new virtual register operand.
static AVRCC::CondCodes intCCToAVRCC(ISD::CondCode CC)
IntCCToAVRCC - Convert a DAG integer condition code to an AVR CC.
unsigned AllocateStack(unsigned Size, unsigned Align)
AllocateStack - Allocate a chunk of stack space with the specified size and alignment.
MVT getSimpleVT() const
Return the SimpleValueType held in the specified simple EVT.
iterator_range< arg_iterator > args()
void setIndexedStoreAction(unsigned IdxMode, MVT VT, LegalizeAction Action)
Indicate that the specified indexed store does or does not work with the specified type and indicate ...
uint64_t getZExtValue() const
MemIndexedMode
MemIndexedMode enum - This enum defines the load / store indexed addressing modes.
MULHU/MULHS - Multiply high - Multiply two integers of type iN, producing an unsigned/signed value of...
This class is used to represent ISD::LOAD nodes.
DYNAMIC_STACKALLOC - Allocate some number of bytes on the stack aligned to a specified boundary...