/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/ |
H A D | SystemZMCTargetDesc.cpp | 36 SystemZ::R0L, SystemZ::R1L, SystemZ::R2L, SystemZ::R3L, 37 SystemZ::R4L, SystemZ::R5L, SystemZ::R6L, SystemZ::R7L, 38 SystemZ::R8L, SystemZ::R9L, SystemZ::R10L, SystemZ::R11L, 39 SystemZ::R12L, SystemZ::R13L, SystemZ::R14L, SystemZ::R15L 43 SystemZ::R0H, SystemZ::R1H, SystemZ::R2H, SystemZ::R3H, 44 SystemZ::R4H, SystemZ::R5H, SystemZ::R6H, SystemZ::R7H, 45 SystemZ::R8H, SystemZ::R9H, SystemZ::R10H, SystemZ::R11H, 46 SystemZ::R12H, SystemZ::R13H, SystemZ::R14H, SystemZ::R15H 50 SystemZ::R0D, SystemZ::R1D, SystemZ::R2D, SystemZ::R3D, 51 SystemZ::R4D, SystemZ::R5D, SystemZ::R6D, SystemZ::R7D, [all …]
|
H A D | SystemZMCObjectWriter.cpp |
|
H A D | SystemZMCAsmBackend.cpp | 58 case SystemZ::FK_390_PC12DBL: in extractBitsForFixup() 60 case SystemZ::FK_390_PC16DBL: in extractBitsForFixup() 62 case SystemZ::FK_390_PC24DBL: in extractBitsForFixup() 64 case SystemZ::FK_390_PC32DBL: in extractBitsForFixup() 67 case SystemZ::FK_390_TLS_CALL: in extractBitsForFixup() 70 case SystemZ::FK_390_S8Imm: in extractBitsForFixup() 72 case SystemZ::FK_390_S16Imm: in extractBitsForFixup() 74 case SystemZ::FK_390_S20Imm: { in extractBitsForFixup() 82 case SystemZ::FK_390_S32Imm: in extractBitsForFixup() 84 case SystemZ::FK_390_U1Imm: in extractBitsForFixup() [all …]
|
H A D | SystemZMCCodeEmitter.cpp | 65 template <SystemZ::FixupKind Kind> 72 template <SystemZ::FixupKind Kind> 91 SystemZ::FK_390_PC16DBL, 2, false); in getPC16DBLEncoding() 97 SystemZ::FK_390_PC32DBL, 2, false); in getPC32DBLEncoding() 103 SystemZ::FK_390_PC16DBL, 2, true); in getPC16DBLTLSEncoding() 109 SystemZ::FK_390_PC32DBL, 2, true); in getPC32DBLTLSEncoding() 115 SystemZ::FK_390_PC12DBL, 1, false); in getPC12DBLBPPEncoding() 121 SystemZ::FK_390_PC16DBL, 4, false); in getPC16DBLBPPEncoding() 127 SystemZ::FK_390_PC24DBL, 3, false); in getPC24DBLBPPEncoding() 160 template <SystemZ::FixupKind Kind> [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZInstrInfo.cpp | 85 HighRegOp.setReg(RI.getSubReg(HighRegOp.getReg(), SystemZ::subreg_h64)); in splitMove() 86 LowRegOp.setReg(RI.getSubReg(LowRegOp.getReg(), SystemZ::subreg_l64)); in splitMove() 143 unsigned NewOpcode = getOpcodeForOffset(SystemZ::LA, Offset); in splitAdjDynAlloc() 159 bool IsHigh = SystemZ::isHighReg(Reg); in expandRIPseudo() 174 bool DestIsHigh = SystemZ::isHighReg(DestReg); in expandRIEPseudo() 175 bool SrcIsHigh = SystemZ::isHighReg(SrcReg); in expandRIEPseudo() 181 SystemZ::LR, 32, MI.getOperand(1).isKill(), in expandRIEPseudo() 197 SystemZ::isHighReg(Reg) ? HighOpcode : LowOpcode, in expandRXYPseudo() 208 unsigned Opcode = SystemZ::isHighReg(Reg) ? HighOpcode : LowOpcode; in expandLOCPseudo() 233 const Register Reg32 = RI.getSubReg(Reg64, SystemZ::subreg_l32); in expandLoadStackGuard() [all …]
|
H A D | SystemZShortenInst.cpp | 83 (SystemZ::GRH32BitRegClass.contains(Reg) ? SystemZ::subreg_h32 in shortenIIF() 84 : SystemZ::subreg_l32); in shortenIIF() 86 (thisSubRegIdx == SystemZ::subreg_l32 ? SystemZ::subreg_h32 in shortenIIF() 87 : SystemZ::subreg_l32); in shortenIIF() 89 TRI->getMatchingSuperReg(Reg, thisSubRegIdx, &SystemZ::GR64BitRegClass); in shortenIIF() 95 if (SystemZ::isImmLL(Imm)) { in shortenIIF() 100 if (SystemZ::isImmLH(Imm)) { in shortenIIF() 146 if (LiveRegs.available(SystemZ::CC) && shortenOn001(MI, Opcode)) { in shortenOn001AddCC() 148 .addReg(SystemZ::CC, RegState::ImplicitDefine | RegState::Dead); in shortenOn001AddCC() 217 case SystemZ::IILF: in processBlock() [all …]
|
H A D | SystemZCallingConv.cpp | 14 const MCPhysReg SystemZ::ELFArgGPRs[SystemZ::ELFNumArgGPRs] = { 15 SystemZ::R2D, SystemZ::R3D, SystemZ::R4D, SystemZ::R5D, SystemZ::R6D 18 const MCPhysReg SystemZ::ELFArgFPRs[SystemZ::ELFNumArgFPRs] = { 19 SystemZ::F0D, SystemZ::F2D, SystemZ::F4D, SystemZ::F6D 23 const MCPhysReg SystemZ::XPLINK64ArgGPRs[SystemZ::XPLINK64NumArgGPRs] = { 24 SystemZ::R1D, SystemZ::R2D, SystemZ::R3D 28 const MCPhysReg SystemZ::XPLINK64ArgFPRs[SystemZ::XPLINK64NumArgFPRs] = { 29 SystemZ::F0D, SystemZ::F2D, SystemZ::F4D, SystemZ::F6D
|
H A D | SystemZFrameLowering.cpp | 30 { SystemZ::R2D, 0x10 }, 31 { SystemZ::R3D, 0x18 }, 32 { SystemZ::R4D, 0x20 }, 33 { SystemZ::R5D, 0x28 }, 34 { SystemZ::R6D, 0x30 }, 35 { SystemZ::R7D, 0x38 }, 36 { SystemZ::R8D, 0x40 }, 37 { SystemZ::R9D, 0x48 }, 38 { SystemZ::R10D, 0x50 }, 39 { SystemZ::R11D, 0x58 }, [all …]
|
H A D | SystemZLongBranch.cpp | 222 MI.isInlineAsm() || MI.getOpcode() == SystemZ::STACKMAP || in getInstSizeInBytes() 223 MI.getOpcode() == SystemZ::PATCHPOINT) && in getInstSizeInBytes() 234 case SystemZ::J: in describeTerminator() 238 case SystemZ::BRC: in describeTerminator() 242 case SystemZ::BRCT: in describeTerminator() 243 case SystemZ::BRCTG: in describeTerminator() 247 case SystemZ::BRCTH: in describeTerminator() 251 case SystemZ::CRJ: in describeTerminator() 252 case SystemZ::CLRJ: in describeTerminator() 256 case SystemZ::CGRJ: in describeTerminator() [all …]
|
H A D | SystemZElimCompare.cpp | 112 case SystemZ::LR: in preservesValueOf() 113 case SystemZ::LGR: in preservesValueOf() 114 case SystemZ::LGFR: in preservesValueOf() 115 case SystemZ::LTR: in preservesValueOf() 116 case SystemZ::LTGR: in preservesValueOf() 117 case SystemZ::LTGFR: in preservesValueOf() 161 return (MI.getOpcode() == SystemZ::LTEBR || in isLoadAndTestAsCmp() 162 MI.getOpcode() == SystemZ::LTDBR || in isLoadAndTestAsCmp() 163 MI.getOpcode() == SystemZ::LTXBR) && in isLoadAndTestAsCmp() 189 if (Opcode == SystemZ::AHI) in convertToBRCT() [all …]
|
H A D | SystemZAsmPrinter.cpp | 147 MCInstBuilder(SystemZ::BCRAsm) in emitCallInformation() 203 case SystemZ::Return: in emitInstruction() 204 LoweredMI = MCInstBuilder(SystemZ::BR) in emitInstruction() 205 .addReg(SystemZ::R14D); in emitInstruction() 208 case SystemZ::Return_XPLINK: in emitInstruction() 209 LoweredMI = MCInstBuilder(SystemZ::B) in emitInstruction() 210 .addReg(SystemZ::R7D) in emitInstruction() 215 case SystemZ::CondReturn: in emitInstruction() 216 LoweredMI = MCInstBuilder(SystemZ::BCR) in emitInstruction() 219 .addReg(SystemZ::R14D); in emitInstruction() [all …]
|
H A D | SystemZTDC.cpp | 165 SystemZ::TDCMASK_ZERO, // eq in convertFCmp() 166 SystemZ::TDCMASK_POSITIVE, // gt in convertFCmp() 167 SystemZ::TDCMASK_NEGATIVE, // lt in convertFCmp() 168 SystemZ::TDCMASK_NAN, // un in convertFCmp() 171 SystemZ::TDCMASK_INFINITY_PLUS, // eq in convertFCmp() 173 (SystemZ::TDCMASK_ZERO | in convertFCmp() 174 SystemZ::TDCMASK_NEGATIVE | in convertFCmp() 175 SystemZ::TDCMASK_NORMAL_PLUS | in convertFCmp() 176 SystemZ::TDCMASK_SUBNORMAL_PLUS), // lt in convertFCmp() 177 SystemZ::TDCMASK_NAN, // un in convertFCmp() [all …]
|
H A D | SystemZISelLowering.cpp | 93 addRegisterClass(MVT::i32, &SystemZ::GRX32BitRegClass); in SystemZTargetLowering() 95 addRegisterClass(MVT::i32, &SystemZ::GR32BitRegClass); in SystemZTargetLowering() 96 addRegisterClass(MVT::i64, &SystemZ::GR64BitRegClass); in SystemZTargetLowering() 99 addRegisterClass(MVT::f32, &SystemZ::VR32BitRegClass); in SystemZTargetLowering() 100 addRegisterClass(MVT::f64, &SystemZ::VR64BitRegClass); in SystemZTargetLowering() 102 addRegisterClass(MVT::f32, &SystemZ::FP32BitRegClass); in SystemZTargetLowering() 103 addRegisterClass(MVT::f64, &SystemZ::FP64BitRegClass); in SystemZTargetLowering() 106 addRegisterClass(MVT::f128, &SystemZ::VR128BitRegClass); in SystemZTargetLowering() 108 addRegisterClass(MVT::f128, &SystemZ::FP128BitRegClass); in SystemZTargetLowering() 111 addRegisterClass(MVT::v16i8, &SystemZ::VR128BitRegClass); in SystemZTargetLowering() [all …]
|
H A D | SystemZRegisterInfo.cpp | 1 //===-- SystemZRegisterInfo.cpp - SystemZ register information ------------===// 32 if (SystemZ::GR32BitRegClass.hasSubClassEq(RC) || in getRC32() 33 MO.getSubReg() == SystemZ::subreg_ll32 || in getRC32() 34 MO.getSubReg() == SystemZ::subreg_l32) in getRC32() 35 return &SystemZ::GR32BitRegClass; in getRC32() 36 if (SystemZ::GRH32BitRegClass.hasSubClassEq(RC) || in getRC32() 37 MO.getSubReg() == SystemZ::subreg_lh32 || in getRC32() 38 MO.getSubReg() == SystemZ::subreg_h32) in getRC32() 39 return &SystemZ::GRH32BitRegClass; in getRC32() 43 if (SystemZ in getRC32() [all...] |
H A D | SystemZRegisterInfo.h | 23 namespace SystemZ { 36 if (SystemZ::GRH32BitRegClass.contains(Reg)) in isHighReg() 38 assert(SystemZ::GR32BitRegClass.contains(Reg) && "Invalid GRX32"); in isHighReg() 84 int getReturnFunctionAddressRegister() final { return SystemZ::R7D; }; in getReturnFunctionAddressRegister() 86 int getStackPointerRegister() final { return SystemZ::R4D; }; in getStackPointerRegister() 88 int getFramePointerRegister() final { return SystemZ::R8D; }; in getFramePointerRegister() 90 int getAddressOfCalleeRegister() { return SystemZ::R6D; }; in getAddressOfCalleeRegister() 92 int getADARegister() { return SystemZ::R5D; } in getADARegister() 111 int getReturnFunctionAddressRegister() final { return SystemZ::R14D; }; in getReturnFunctionAddressRegister() 113 int getStackPointerRegister() final { return SystemZ::R15D; }; in getStackPointerRegister() [all …]
|
H A D | SystemZISelDAGToDAG.cpp | 803 if (RxSBG.Opcode == SystemZ::RNSBG) in expandRxSBG() 815 if (RxSBG.Opcode == SystemZ::RNSBG) in expandRxSBG() 838 if (RxSBG.Opcode != SystemZ::RNSBG) in expandRxSBG() 879 if (RxSBG.Opcode != SystemZ::RNSBG) { in expandRxSBG() 918 if (RxSBG.Opcode == SystemZ::RNSBG) { in expandRxSBG() 945 if (RxSBG.Opcode == SystemZ::RNSBG || Opcode == ISD::SRA) { in expandRxSBG() 974 return CurDAG->getTargetInsertSubreg(SystemZ::subreg_l32, in convertTo() 977 return CurDAG->getTargetExtractSubreg(SystemZ::subreg_l32, DL, VT, N); in convertTo() 987 RxSBGOperands RISBG(SystemZ::RISBG, SDValue(N, 0)); in tryRISBGZero() 1017 SystemZ::isImmLF(~RISBG.Mask) || in tryRISBGZero() [all …]
|
H A D | SystemZCallingConv.h | 18 namespace SystemZ { 121 Reg = State.AllocateReg(SystemZ::ELFArgGPRs); in CC_SystemZ_I128Indirect() 123 Reg = State.AllocateReg(SystemZ::XPLINK64ArgGPRs); in CC_SystemZ_I128Indirect() 149 State.AllocateReg(SystemZ::XPLINK64ArgGPRs); in CC_XPLINK64_Shadow_Reg() 153 State.AllocateReg(SystemZ::XPLINK64ArgGPRs); in CC_XPLINK64_Shadow_Reg() 154 State.AllocateReg(SystemZ::XPLINK64ArgGPRs); in CC_XPLINK64_Shadow_Reg() 159 for (unsigned I = 0; I < SystemZ::XPLINK64NumArgFPRs; I += 2) in CC_XPLINK64_Shadow_Reg() 160 if (State.isAllocated(SystemZ::XPLINK64ArgFPRs[I])) in CC_XPLINK64_Shadow_Reg() 161 State.AllocateReg(SystemZ::XPLINK64ArgFPRs[I + 1]); in CC_XPLINK64_Shadow_Reg() 178 State.AllocateReg(SystemZ::R1D); in CC_XPLINK64_Allocate128BitVararg() [all …]
|
H A D | SystemZPostRewrite.cpp | 84 bool DestIsHigh = SystemZ::isHighReg(DestReg); in selectLOCRMux() 85 bool SrcIsHigh = SystemZ::isHighReg(SrcReg); in selectLOCRMux() 106 bool DestIsHigh = SystemZ::isHighReg(DestReg); in selectSELRMux() 107 bool Src1IsHigh = SystemZ::isHighReg(Src1Reg); in selectSELRMux() 108 bool Src2IsHigh = SystemZ::isHighReg(Src2Reg); in selectSELRMux() 116 TII->get(SystemZ::COPY), DestReg) in selectSELRMux() 123 TII->get(SystemZ::COPY), DestReg) in selectSELRMux() 186 BuildMI(&MBB, DL, TII->get(SystemZ::BRC)) in expandCondMove() 193 BuildMI(*MoveMBB, MoveMBB->end(), DL, TII->get(SystemZ::COPY), DestReg) in expandCondMove() 214 int TargetMemOpcode = SystemZ::getTargetMemOpcode(Opcode); in selectMI() [all …]
|
H A D | SystemZCopyPhysRegs.cpp | 81 (SrcReg == SystemZ::CC || SystemZ::AR32BitRegClass.contains(SrcReg))) { in visitMBB() 82 Register Tmp = MRI->createVirtualRegister(&SystemZ::GR32BitRegClass); in visitMBB() 83 if (SrcReg == SystemZ::CC) in visitMBB() 84 BuildMI(MBB, MI, DL, TII->get(SystemZ::IPM), Tmp); in visitMBB() 86 BuildMI(MBB, MI, DL, TII->get(SystemZ::EAR), Tmp).addReg(SrcReg); in visitMBB() 91 SystemZ::AR32BitRegClass.contains(DstReg)) { in visitMBB() 92 Register Tmp = MRI->createVirtualRegister(&SystemZ::GR32BitRegClass); in visitMBB() 94 BuildMI(MBB, MBBI, DL, TII->get(SystemZ::SAR), DstReg).addReg(Tmp); in visitMBB()
|
H A D | SystemZ.td | 1 //===-- SystemZ.td - Describe the SystemZ target machine -----*- tblgen -*-===// 16 // SystemZ subtarget features 22 // SystemZ subtarget scheduling models 28 // SystemZ supported processors 88 def SystemZ : Target {
|
H A D | SystemZMachineFunctionInfo.h | 1 //=== SystemZMachineFunctionInfo.h - SystemZ machine function info -*- C++ -*-// 16 namespace SystemZ { 33 SystemZ::GPRRegs SpillGPRRegs; 34 SystemZ::GPRRegs RestoreGPRRegs; 63 SystemZ::GPRRegs getSpillGPRRegs() const { return SpillGPRRegs; } in getSpillGPRRegs() 73 SystemZ::GPRRegs getRestoreGPRRegs() const { return RestoreGPRRegs; } in getRestoreGPRRegs()
|
H A D | SystemZOperands.td | 1 //===-- SystemZOperands.td - SystemZ instruction operands ----*- tblgen-*--===// 26 let EncoderMethod = "getImmOpValue<SystemZ::FK_390_"#asmop#">"; 317 return N->getAPIntValue().isIntN(32) && SystemZ::isImmLL(N->getZExtValue()); 321 return N->getAPIntValue().isIntN(32) && SystemZ::isImmLH(N->getZExtValue()); 328 SystemZ::isImmLL(uint32_t(~N->getZExtValue())); 333 SystemZ::isImmLH(uint32_t(~N->getZExtValue())); 408 return N->getAPIntValue().isIntN(64) && SystemZ::isImmLL(N->getZExtValue()); 412 return N->getAPIntValue().isIntN(64) && SystemZ::isImmLH(N->getZExtValue()); 416 return N->getAPIntValue().isIntN(64) && SystemZ::isImmHL(N->getZExtValue()); 420 return N->getAPIntValue().isIntN(64) && SystemZ [all...] |
H A D | SystemZLDCleanup.cpp | 96 case SystemZ::TLS_LDCALL: in VisitNode() 121 TII->get(TargetOpcode::COPY), SystemZ::R2D) in ReplaceTLSCall() 136 *TLSBaseAddrReg = RegInfo.createVirtualRegister(&SystemZ::GR64BitRegClass); in SetRegister() 142 .addReg(SystemZ::R2D); in SetRegister()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaSystemZ.cpp | 26 if (BuiltinID == SystemZ::BI__builtin_tabort) { in CheckSystemZBuiltinFunctionCall() 40 case SystemZ::BI__builtin_s390_lcbb: i = 1; l = 0; u = 15; break; in CheckSystemZBuiltinFunctionCall() 41 case SystemZ::BI__builtin_s390_verimb: in CheckSystemZBuiltinFunctionCall() 42 case SystemZ::BI__builtin_s390_verimh: in CheckSystemZBuiltinFunctionCall() 43 case SystemZ::BI__builtin_s390_verimf: in CheckSystemZBuiltinFunctionCall() 44 case SystemZ::BI__builtin_s390_verimg: i = 3; l = 0; u = 255; break; in CheckSystemZBuiltinFunctionCall() 45 case SystemZ::BI__builtin_s390_vfaeb: in CheckSystemZBuiltinFunctionCall() 46 case SystemZ::BI__builtin_s390_vfaeh: in CheckSystemZBuiltinFunctionCall() 47 case SystemZ::BI__builtin_s390_vfaef: in CheckSystemZBuiltinFunctionCall() 48 case SystemZ::BI__builtin_s390_vfaebs: in CheckSystemZBuiltinFunctionCall() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/AsmParser/ |
H A D | SystemZAsmParser.cpp | 637 { "e", SystemZ::InsnE, 1, 639 { "ri", SystemZ::InsnRI, 3, 641 { "rie", SystemZ::InsnRIE, 4, 643 { "ril", SystemZ::InsnRIL, 3, 645 { "rilu", SystemZ::InsnRILU, 3, 647 { "ris", SystemZ::InsnRIS, 5, 649 { "rr", SystemZ::InsnRR, 3, 651 { "rre", SystemZ::InsnRRE, 3, 653 { "rrf", SystemZ::InsnRRF, 5, 655 { "rrs", SystemZ::InsnRRS, 5, [all …]
|