Home
last modified time | relevance | path

Searched full:ppc (Results 1 – 25 of 499) sorted by relevance

12345678910>>...20

/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCPredicates.cpp1 //===-- PPCPredicates.cpp - PPC Branch Predicate Information --------------===//
17 PPC::Predicate PPC::InvertPredicate(PPC::Predicate Opcode) {
19 case PPC::PRED_EQ: return PPC::PRED_NE; in InvertPredicate()
20 case PPC::PRED_NE: return PPC::PRED_EQ; in InvertPredicate()
21 case PPC::PRED_LT: return PPC in InvertPredicate()
[all...]
H A DPPCMCTargetDesc.h16 // GCC #defines PPC on Linux but we use it as our namespace name
17 #undef PPC
37 namespace PPC {
53 } // namespace PPC
62 /// Construct an PPC ELF object writer. in isRunOfOnes()
65 /// Construct a PPC Mach-O object writer. in isRunOfOnes()
69 /// Construct a PPC XCOFF object writer. in isRunOfOnes()
126 /// PPC.td and PPCInstrFormats.td.
257 static const MCPhysReg RRegs[32] = PPC_REGS0_31(PPC::R); \
258 static const MCPhysReg XRegs[32] = PPC_REGS0_31(PPC
[all...]
H A DPPCInstPrinter.cpp1 //===-- PPCInstPrinter.cpp - Convert PPC MCInst to assembly syntax --------===//
9 // This class prints an PPC MCInst to a .s file.
33 FullRegNames("ppc-asm-full-reg-names", cl::Hidden, cl::init(false),
38 ShowVSRNumsAsVR("ppc-vsr-nums-as-vr", cl::Hidden, cl::init(false),
43 FullRegNamesWithPercent("ppc-reg-with-percent-prefix", cl::Hidden,
63 (MI->getOpcode() == PPC::ADDIS8 || MI->getOpcode() == PPC::ADDIS) && in printInst()
96 if (MI->getOpcode() == PPC::PLDpc) { in printInst()
114 if (MI->getOpcode() == PPC::RLWINM) { in printInst()
137 if (MI->getOpcode() == PPC in printInst()
[all...]
/freebsd/sys/dev/ppc/
H A Dppc.c58 #include <dev/ppc/ppcvar.h>
59 #include <dev/ppc/ppcreg.h>
68 #define LOG_PPC(function, ppc, string) \ argument
86 #define PPC_CONFIG_LOCK(ppc) critical_enter() argument
87 #define PPC_CONFIG_UNLOCK(ppc) critical_exit() argument
89 const char ppc_driver_name[] = "ppc";
133 struct ppc_data *ppc = DEVTOSOFTC(dev); in ppc_ecp_sync() local
135 PPC_ASSERT_LOCKED(ppc); in ppc_ecp_sync()
136 if (!(ppc->ppc_avm & PPB_ECP) && !(ppc in ppc_ecp_sync()
161 ppc_detect_fifo(struct ppc_data * ppc) ppc_detect_fifo() argument
267 ppc_detect_port(struct ppc_data * ppc) ppc_detect_port() argument
286 ppc_reset_epp_timeout(struct ppc_data * ppc) ppc_reset_epp_timeout() argument
298 ppc_check_epp_timeout(struct ppc_data * ppc) ppc_check_epp_timeout() argument
309 ppc_generic_setmode(struct ppc_data * ppc,int mode) ppc_generic_setmode() argument
354 ppc_smclike_setmode(struct ppc_data * ppc,int mode) ppc_smclike_setmode() argument
419 ppc_pc873xx_detect(struct ppc_data * ppc,int chipset_mode) ppc_pc873xx_detect() argument
699 ppc_smc37c66xgt_detect(struct ppc_data * ppc,int chipset_mode) ppc_smc37c66xgt_detect() argument
908 ppc_smc37c935_detect(struct ppc_data * ppc,int chipset_mode) ppc_smc37c935_detect() argument
1003 ppc_w83877f_detect(struct ppc_data * ppc,int chipset_mode) ppc_w83877f_detect() argument
1184 ppc_generic_detect(struct ppc_data * ppc,int chipset_mode) ppc_generic_detect() argument
1252 ppc_detect(struct ppc_data * ppc,int chipset_mode) ppc_detect() argument
1314 struct ppc_data *ppc = DEVTOSOFTC(dev); ppc_exec_microseq() local
1329 r_reg(reg,ppc) ppc_exec_microseq() argument
1330 w_reg(reg,ppc,byte) ppc_exec_microseq() argument
1529 struct ppc_data *ppc = arg; ppcintr() local
1625 struct ppc_data *ppc = DEVTOSOFTC(dev); ppc_reset_epp() local
1636 struct ppc_data *ppc = DEVTOSOFTC(dev); ppc_setmode() local
1657 struct ppc_data *ppc; ppc_probe() local
1776 struct ppc_data *ppc = DEVTOSOFTC(dev); ppc_attach() local
1817 struct ppc_data *ppc = DEVTOSOFTC(dev); ppc_detach() local
1848 struct ppc_data *ppc = DEVTOSOFTC(ppcdev); ppc_io() local
1916 struct ppc_data *ppc = (struct ppc_data *)device_get_softc(bus); ppc_read_ivar() local
1936 struct ppc_data *ppc = (struct ppc_data *)device_get_softc(bus); ppc_write_ivar() local
1967 struct ppc_data *ppc = DEVTOSOFTC(bus); ppc_alloc_resource() local
1981 struct ppc_data *ppc = DEVTOSOFTC(bus); ppc_release_resource() local
[all...]
H A Dppc_isa.c46 #include <dev/ppc/ppcvar.h>
47 #include <dev/ppc/ppcreg.h>
92 ppc_isa_dmadone(struct ppc_data *ppc) in ppc_isa_dmadone() argument
94 isa_dmadone(ppc->ppc_dmaflags, ppc->ppc_dmaddr, ppc->ppc_dmacnt, in ppc_isa_dmadone()
95 ppc->ppc_dmachan); in ppc_isa_dmadone()
101 struct ppc_data *ppc = device_get_softc(dev); in ppc_isa_attach() local
103 if ((ppc->ppc_avm & PPB_ECP) && (ppc->ppc_dmachan > 0)) { in ppc_isa_attach()
105 isa_dma_acquire(ppc->ppc_dmachan); in ppc_isa_attach()
106 isa_dmainit(ppc->ppc_dmachan, 1024); /* nlpt.BUFSIZE */ in ppc_isa_attach()
107 ppc->ppc_dmadone = ppc_isa_dmadone; in ppc_isa_attach()
[all …]
H A Dppcreg.h152 #define r_dtr(ppc) (bus_read_1((ppc)->res_ioport, PPC_SPP_DTR)) argument
153 #define r_str(ppc) (bus_read_1((ppc)->res_ioport, PPC_SPP_STR)) argument
154 #define r_ctr(ppc) (bus_read_1((ppc)->res_ioport, PPC_SPP_CTR)) argument
156 #define r_epp_A(ppc) (bus_read_1((ppc)->res_ioport, PPC_EPP_ADDR)) argument
157 #define r_epp_D(ppc) (bus_read_1((ppc)->res_ioport, PPC_EPP_DATA)) argument
158 #define r_cnfgA(ppc) (bus_read_1((ppc)->res_ioport, PPC_ECP_CNFGA)) argument
159 #define r_cnfgB(ppc) (bus_read_1((ppc)->res_ioport, PPC_ECP_CNFGB)) argument
160 #define r_ecr(ppc) (bus_read_1((ppc)->res_ioport, PPC_ECP_ECR)) argument
161 #define r_fifo(ppc) (bus_read_1((ppc)->res_ioport, PPC_ECP_D_FIFO)) argument
163 #define w_dtr(ppc, byte) (bus_write_1((ppc)->res_ioport, PPC_SPP_DTR, byte)) argument
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCRegisterInfo.cpp56 EnableBasePointer("ppc-use-base-pointer", cl::Hidden, cl::init(true),
60 AlwaysBasePointer("ppc-always-use-base-pointer", cl::Hidden, cl::init(false),
64 EnableGPRToVecSpills("ppc-enable-gpr-to-vsr-spills", cl::Hidden, cl::init(false),
68 StackPtrConst("ppc-stack-ptr-caller-preserved",
74 MaxCRBitSpillDist("ppc-max-crbit-spill-dist",
76 "spill on ppc"),
88 ReportAccMoves("ppc-report-acc-moves",
99 : PPCGenRegisterInfo(TM.isPPC64() ? PPC::LR8 : PPC::LR, in PPCRegisterInfo()
103 ImmToIdxMap[PPC::LD] = PPC::LDX; ImmToIdxMap[PPC::STD] = PPC::STDX; in PPCRegisterInfo()
104 ImmToIdxMap[PPC::LBZ] = PPC::LBZX; ImmToIdxMap[PPC::STB] = PPC::STBX; in PPCRegisterInfo()
[all …]
H A DPPCInstrInfo.cpp15 #include "PPC.h"
48 #define DEBUG_TYPE "ppc-instr-info"
67 opt<bool> DisableCTRLoopAnal("disable-ppc-ctrloop-analysis", cl::Hidden,
70 static cl::opt<bool> DisableCmpOpt("disable-ppc-cmp-opt",
73 static cl::opt<bool> VSXSelfCopyCrash("crash-on-ppc-vsx-self-copy",
78 UseOldLatencyCalc("ppc-old-latency-calc", cl::Hidden,
82 FMARPFactor("ppc-fma-rp-factor", cl::Hidden, cl::init(1.5),
86 "ppc-fma-rp-reduction", cl::Hidden, cl::init(true),
93 : PPCGenInstrInfo(PPC::ADJCALLSTACKDOWN, PPC::ADJCALLSTACKUP, in PPCInstrInfo()
95 STI.isPPC64() ? PPC::BLR8 : PPC::BLR), in PPCInstrInfo()
[all …]
H A DPPCInstrInfo.h17 #include "PPC.h"
88 // PPC MachineCombiner patterns
102 #define NoInstr PPC::INSTRUCTION_LIST_END
105 PPC::LWZ, PPC::LD, PPC::LFD, PPC::LFS, PPC::RESTORE_CR, \
106 PPC::RESTORE_CRBIT, PPC::LVX, PPC::LXVD2X, PPC::LXSDX, PPC::LXSSPX, \
107 PPC::SPILLTOVSR_LD, NoInstr, NoInstr, NoInstr, NoInstr, PPC::EVLDD, \
108 PPC::RESTORE_QUADWORD \
113 PPC::LWZ, PPC::LD, PPC::LFD, PPC::LFS, PPC::RESTORE_CR, \
114 PPC::RESTORE_CRBIT, PPC::LVX, PPC::LXV, PPC::DFLOADf64, \
115 PPC::DFLOADf32, PPC::SPILLTOVSR_LD, NoInstr, NoInstr, NoInstr, \
[all …]
H A DPPCCallingConv.cpp20 // gracefully fallback to PPC C calling convention on Release builds. in CC_PPC_AnyReg_Error()
34 static const MCPhysReg ELF64ArgGPRs[] = {PPC::X3, PPC::X4, PPC::X5, PPC::X6, in CC_PPC64_ELF_Shadow_GPR_Regs()
35 PPC::X7, PPC::X8, PPC::X9, PPC::X10}; in CC_PPC64_ELF_Shadow_GPR_Regs()
53 if ((State.AllocateReg(ELF64ArgGPRs) - PPC::X3) % 2 == 1) in CC_PPC64_ELF_Shadow_GPR_Regs()
73 PPC::R3, PPC::R4, PPC::R5, PPC::R6, in CC_PPC32_SVR4_Custom_AlignArgRegs()
74 PPC::R7, PPC::R8, PPC::R9, PPC::R10, in CC_PPC32_SVR4_Custom_AlignArgRegs()
98 PPC::R3, PPC::R4, PPC::R5, PPC::R6, in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
99 PPC::R7, PPC::R8, PPC::R9, PPC::R10, in CC_PPC32_SVR4_Custom_SkipLastArgRegsPPCF128()
123 PPC::F1, PPC::F2, PPC::F3, PPC::F4, PPC::F5, PPC::F6, PPC::F7, in CC_PPC32_SVR4_Custom_AlignFPArgRegs()
124 PPC::F8 in CC_PPC32_SVR4_Custom_AlignFPArgRegs()
[all …]
H A DPPCFastISel.cpp16 #include "PPC.h"
144 return RC->getID() == PPC::VSFRCRegClassID; in isVSFRCRegClass()
147 return RC->getID() == PPC::VSSRCRegClassID; in isVSSRCRegClass()
159 const PPC::Predicate Pred);
162 unsigned FP64LoadOpc = PPC::LFD);
200 static std::optional<PPC::Predicate> getComparePred(CmpInst::Predicate Pred) { in getComparePred()
232 return PPC::PRED_EQ; in getComparePred()
237 return PPC::PRED_GT; in getComparePred()
242 return PPC::PRED_GE; in getComparePred()
247 return PPC::PRED_LT; in getComparePred()
[all …]
H A DPPCRegisterInfo.h28 if (SrcReg == PPC::CR0LT || SrcReg == PPC::CR0GT || in getCRFromCRBit()
29 SrcReg == PPC::CR0EQ || SrcReg == PPC::CR0UN) in getCRFromCRBit()
30 Reg = PPC::CR0; in getCRFromCRBit()
31 else if (SrcReg == PPC::CR1LT || SrcReg == PPC::CR1GT || in getCRFromCRBit()
32 SrcReg == PPC::CR1EQ || SrcReg == PPC::CR1UN) in getCRFromCRBit()
33 Reg = PPC in getCRFromCRBit()
[all...]
H A DPPCExpandAtomicPseudoInsts.cpp16 #include "PPC.h"
26 #define DEBUG_TYPE "ppc-atomic-expand"
55 const MCInstrDesc &OR = TII->get(PPC::OR8); in PairedCopy()
56 const MCInstrDesc &XOR = TII->get(PPC::XOR8); in PairedCopy()
94 case PPC::ATOMIC_SWAP_I128: in expandMI()
95 case PPC::ATOMIC_LOAD_ADD_I128: in expandMI()
96 case PPC::ATOMIC_LOAD_SUB_I128: in expandMI()
97 case PPC::ATOMIC_LOAD_XOR_I128: in expandMI()
98 case PPC::ATOMIC_LOAD_NAND_I128: in expandMI()
99 case PPC::ATOMIC_LOAD_AND_I128: in expandMI()
[all …]
H A DPPCMIPeephole.cpp32 #include "PPC.h"
52 #define DEBUG_TYPE "ppc-mi-peepholes"
64 "Number of functions entered in PPC MI Peepholes");
76 FixedPointRegToImm("ppc-reg-to-imm-fixed-point", cl::Hidden, cl::init(true),
81 ConvertRegReg("ppc-convert-rr-to-ri", cl::Hidden, cl::init(true),
85 EnableSExtElimination("ppc-eliminate-signext",
90 EnableZExtElimination("ppc-eliminate-zeroext",
95 EnableTrapOptimization("ppc-opt-conditional-trap",
100 PeepholeXToICounter, "ppc-xtoi-peephole",
101 "Controls whether PPC reg+reg to reg+imm peephole is performed on a MI");
[all …]
H A DPPCFrameLowering.cpp1 //===-- PPCFrameLowering.cpp - PPC Frame Information ----------------------===//
9 // This file contains the PPC implementation of TargetFrameLowering class.
39 EnablePEVectorSpills("ppc-enable-pe-vector-spills",
98 {PPC::F31, -8}, \ in getCalleeSavedSpillSlots()
99 {PPC::F30, -16}, \ in getCalleeSavedSpillSlots()
100 {PPC::F29, -24}, \ in getCalleeSavedSpillSlots()
101 {PPC::F28, -32}, \ in getCalleeSavedSpillSlots()
102 {PPC::F27, -40}, \ in getCalleeSavedSpillSlots()
103 {PPC::F26, -48}, \ in getCalleeSavedSpillSlots()
104 {PPC::F25, -56}, \ in getCalleeSavedSpillSlots()
[all …]
H A DPPCVSXSwapRemoval.cpp44 #include "PPC.h"
60 #define DEBUG_TYPE "ppc-vsx-swaps"
168 return (isRegInClass(Reg, &PPC::VSRCRegClass) || in isVecReg()
169 isRegInClass(Reg, &PPC::VRRCRegClass)); in isVecReg()
174 return (isRegInClass(Reg, &PPC::VSFRCRegClass) || in isScalarVecReg()
175 isRegInClass(Reg, &PPC::VSSRCRegClass)); in isScalarVecReg()
288 case PPC::XXPERMDI: { in gatherVectorInstructions()
337 case PPC::LVX: in gatherVectorInstructions()
344 case PPC::LXVD2X: in gatherVectorInstructions()
345 case PPC::LXVW4X: in gatherVectorInstructions()
[all …]
H A DPPCTLSDynamicCall.cpp23 #include "PPC.h"
37 #define DEBUG_TYPE "ppc-tls-dynamic-call"
68 bool IsTLSTPRelMI = MI.getOpcode() == PPC::GETtlsTpointer32AIX; in processBlock()
69 bool IsTLSLDAIXMI = (MI.getOpcode() == PPC::TLSLDAIX8 || in processBlock()
70 MI.getOpcode() == PPC::TLSLDAIX); in processBlock()
72 if (MI.getOpcode() != PPC::ADDItlsgdLADDR && in processBlock()
73 MI.getOpcode() != PPC::ADDItlsldLADDR && in processBlock()
74 MI.getOpcode() != PPC::ADDItlsgdLADDR32 && in processBlock()
75 MI.getOpcode() != PPC::ADDItlsldLADDR32 && in processBlock()
76 MI.getOpcode() != PPC::TLSGDAIX && in processBlock()
[all …]
H A DPPCPreEmitPeephole.cpp14 #include "PPC.h"
30 #define DEBUG_TYPE "ppc-pre-emit-peephole"
44 EnablePCRelLinkerOpt("ppc-pcrel-linker-opt", cl::Hidden, cl::init(true),
48 RunPreEmitPeephole("ppc-late-peephole", cl::Hidden, cl::init(true),
52 DSCRValue("ppc-set-dscr", cl::Hidden,
61 case PPC::LBZ: in hasPCRelativeForm()
62 case PPC::LBZ8: in hasPCRelativeForm()
63 case PPC::LHA: in hasPCRelativeForm()
64 case PPC::LHA8: in hasPCRelativeForm()
65 case PPC::LHZ: in hasPCRelativeForm()
[all …]
H A DPPCISelDAGToDAG.cpp1 //===-- PPCISelDAGToDAG.cpp - PPC --pattern matching inst selector --------===//
10 // converting from a legalized dag to a PPC dag.
16 #include "PPC.h"
72 #define DEBUG_TYPE "ppc-isel"
91 cl::opt<bool> ANDIGlueBug("expose-ppc-andi-glue-bug",
92 cl::desc("expose the ANDI glue bug on PPC"), cl::Hidden);
95 UseBitPermRewriter("ppc-use-bit-perm-rewriter", cl::init(true),
96 cl::desc("use aggressive ppc isel for bit permutations"),
99 "ppc-bit-perm-rewriter-stress-rotates",
100 cl::desc("stress rotate selection in aggressive ppc isel for "
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaPPC.cpp57 // These builtins only work on PPC 64bit targets. in isPPC_64Builtin()
59 case PPC::BI__builtin_divde: in isPPC_64Builtin()
60 case PPC::BI__builtin_divdeu: in isPPC_64Builtin()
61 case PPC::BI__builtin_bpermd: in isPPC_64Builtin()
62 case PPC::BI__builtin_pdepd: in isPPC_64Builtin()
63 case PPC::BI__builtin_pextd: in isPPC_64Builtin()
64 case PPC::BI__builtin_ppc_ldarx: in isPPC_64Builtin()
65 case PPC::BI__builtin_ppc_stdcx: in isPPC_64Builtin()
66 case PPC::BI__builtin_ppc_tdw: in isPPC_64Builtin()
67 case PPC::BI__builtin_ppc_trapd: in isPPC_64Builtin()
[all …]
/freebsd/sys/modules/ossl/
H A DMakefile63 aes-ppc.S \
64 aesp8-ppc.S \
65 chacha-ppc.S \
67 ghashp8-ppc.S \
69 poly1305-ppc.S \
71 ppc-mont.S \
72 ppc.S \
74 sha1-ppc.S \
75 sha256-ppc.S \
76 sha256p8-ppc.S \
[all …]
/freebsd/secure/lib/libcrypto/
H A DMakefile.asm308 SRCS+= ppc.pl ppc-mont.pl
311 SRCS+= aes-ppc.pl vpaes-ppc.pl aesp8-ppc.pl
314 SRCS+= sha1-ppc.pl sha512-ppc.pl sha512p8-ppc.pl
317 SRCS+= ghashp8-ppc.pl
320 SRCS+= chacha-ppc.pl
323 SRCS+= poly1305-ppc.pl poly1305-ppcfp.pl
325 ASM= ${SRCS:R:S/$/.S/} bn-ppc.S sha256-ppc.S sha256p8-ppc.S
333 bn-ppc.S: ppc.pl
338 sha256-ppc.S: sha512-ppc.pl
343 sha256p8-ppc.S: sha512p8-ppc.pl
[all …]
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/Arch/
H A DPPC.cpp1 //===--- PPC.cpp - PPC Helpers for Tools ------------------------*- C++ -*-===//
9 #include "PPC.h"
34 return "ppc"; in getPPCGenericTargetCPU()
75 .Case("powerpc", "ppc") in normalizeCPUName()
82 std::string ppc::getPPCTuneCPU(const ArgList &Args, const llvm::Triple &T) { in getPPCTuneCPU()
89 std::string ppc::getPPCTargetCPU(const Driver &D, const ArgList &Args, in getPPCTargetCPU()
96 const char *ppc::getPPCAsmModeForCPU(StringRef Name) { in getPPCAsmModeForCPU()
112 void ppc::getPPCTargetFeatures(const Driver &D, const llvm::Triple &Triple, in getPPCTargetFeatures()
121 ppc::FloatABI FloatABI = ppc::getPPCFloatABI(D, Args); in getPPCTargetFeatures()
122 if (FloatABI == ppc::FloatABI::Soft) in getPPCTargetFeatures()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp13 #include "PPC.h"
28 #define DEBUG_TYPE "ppc-gisel"
104 if (RB->getID() == PPC::GPRRegBankID) { in getRegClass()
106 return &PPC::G8RCRegClass; in getRegClass()
108 return &PPC::GPRCRegClass; in getRegClass()
110 if (RB->getID() == PPC::FPRRegBankID) { in getRegClass()
112 return &PPC::F4RCRegClass; in getRegClass()
114 return &PPC::F8RCRegClass; in getRegClass()
116 if (RB->getID() == PPC::VECRegBankID) { in getRegClass()
118 return &PPC::VSRCRegClass; in getRegClass()
[all …]
H A DPPCRegisterBankInfo.cpp21 #define DEBUG_TYPE "ppc-reg-bank-info"
37 case PPC::G8RCRegClassID: in getRegBankFromRegClass()
38 case PPC::G8RC_NOX0RegClassID: in getRegBankFromRegClass()
39 case PPC::G8RC_and_G8RC_NOX0RegClassID: in getRegBankFromRegClass()
40 case PPC::GPRCRegClassID: in getRegBankFromRegClass()
41 case PPC::GPRC_NOR0RegClassID: in getRegBankFromRegClass()
42 case PPC::GPRC_and_GPRC_NOR0RegClassID: in getRegBankFromRegClass()
43 return getRegBank(PPC::GPRRegBankID); in getRegBankFromRegClass()
44 case PPC::VSFRCRegClassID: in getRegBankFromRegClass()
45 case PPC::SPILLTOVSRRC_and_VSFRCRegClassID: in getRegBankFromRegClass()
[all …]

12345678910>>...20