Searched refs:CSKY (Results 1 - 25 of 29) sorted by relevance

12

/openbsd-current/gnu/llvm/llvm/lib/Target/CSKY/Disassembler/
H A DCSKYDisassembler.cpp1 //===-- CSKYDisassembler.cpp - Disassembler for CSKY ----------------------===//
66 CSKY::R0, CSKY::R1, CSKY::R2, CSKY::R3, CSKY::R4, CSKY::R5, CSKY::R6,
67 CSKY::R7, CSKY
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYAsmBackend.cpp1 //===-- CSKYAsmBackend.cpp - CSKY Assembler Backend -----------------------===//
32 {CSKY::Fixups::fixup_csky_addr32, {"fixup_csky_addr32", 0, 32, 0}},
33 {CSKY::Fixups::fixup_csky_addr_hi16, {"fixup_csky_addr_hi16", 0, 32, 0}},
34 {CSKY::Fixups::fixup_csky_addr_lo16, {"fixup_csky_addr_lo16", 0, 32, 0}},
35 {CSKY::Fixups::fixup_csky_pcrel_imm16_scale2,
37 {CSKY::Fixups::fixup_csky_pcrel_uimm16_scale4,
41 {CSKY::Fixups::fixup_csky_pcrel_uimm8_scale4,
45 {CSKY::Fixups::fixup_csky_pcrel_imm26_scale2,
47 {CSKY::Fixups::fixup_csky_pcrel_imm18_scale2,
49 {CSKY
[all...]
H A DCSKYELFStreamer.cpp1 //===-- CSKYELFStreamer.cpp - CSKY ELF Target Streamer Methods ------------===//
9 // This file provides CSKY specific target streamer methods.
41 if (Features[CSKY::ProcCK801])
43 else if (Features[CSKY::ProcCK802])
45 else if (Features[CSKY::ProcCK803])
47 else if (Features[CSKY::ProcCK804])
49 else if (Features[CSKY::ProcCK805])
51 else if (Features[CSKY::ProcCK807])
53 else if (Features[CSKY::ProcCK810])
55 else if (Features[CSKY
[all...]
H A DCSKYMCCodeEmitter.cpp1 //===-- CSKYMCCodeEmitter.cpp - CSKY Code Emitter interface ---------------===//
79 MCInstBuilder(MI.getOpcode() == CSKY::JBT_E ? CSKY::BF16 : CSKY::BT16)
85 if (!STI.getFeatureBits()[CSKY::Has2E3])
86 TmpInst = MCInstBuilder(CSKY::BR32)
90 TmpInst = MCInstBuilder(CSKY::JMPI32).addOperand(MI.getOperand(2));
102 unsigned Size = MI.getOpcode() == CSKY::NEG32 ? 4 : 2;
104 TmpInst = MCInstBuilder(Size == 4 ? CSKY::NOT32 : CSKY
[all...]
H A DCSKYELFObjectWriter.cpp1 //===-- CSKYELFObjectWriter.cpp - CSKY ELF Writer -------------------------===//
52 case CSKY::fixup_csky_pcrel_uimm16_scale4:
54 case CSKY::fixup_csky_pcrel_uimm8_scale4:
56 case CSKY::fixup_csky_pcrel_imm26_scale2:
58 case CSKY::fixup_csky_pcrel_imm18_scale2:
60 case CSKY::fixup_csky_pcrel_imm16_scale2:
62 case CSKY::fixup_csky_pcrel_imm10_scale2:
64 case CSKY::fixup_csky_pcrel_uimm7_scale4:
128 case CSKY::fixup_csky_addr32:
130 case CSKY
[all...]
H A DCSKYInstPrinter.cpp1 //===-- CSKYInstPrinter.cpp - Convert CSKY MCInst to asm syntax ---------===//
9 // This class prints an CSKY MCInst to a .s file.
87 O << getRegisterName(Reg, ABIRegNames ? CSKY::ABIRegAltName
88 : CSKY::NoRegAltName);
95 O << getRegisterName(RegNo, CSKY::NoRegAltName);
114 if (Reg == CSKY::C)
116 else if (STI.getFeatureBits()[CSKY::FeatureJAVA]) {
117 if (Reg == CSKY::R23)
119 else if (Reg == CSKY::R24)
121 else if (Reg == CSKY
[all...]
H A DCSKYFixupKinds.h1 //===-- CSKYFixupKinds.h - CSKY Specific Fixup Entries ----------*- C++ -*-===//
15 namespace CSKY { namespace in namespace:llvm
58 } // end namespace CSKY
H A DCSKYMCTargetDesc.cpp1 //===-- CSKYMCTargetDesc.cpp - CSKY Target Descriptions -------------------===//
9 /// This file provides CSKY specific target descriptions.
46 unsigned Reg = MRI.getDwarfRegNum(CSKY::R14, true);
68 InitCSKYMCRegisterInfo(Info, CSKY::R15);
128 if (Inst.getOpcode() == CSKY::BSR32) {
136 case CSKY::LRW16:
137 case CSKY::LRW32:
138 case CSKY::JSRI32:
139 case CSKY::JMPI32:
H A DCSKYMCCodeEmitter.h1 //===-- CSKYMCCodeEmitter.cpp - CSKY Code Emitter interface ---------------===//
98 template <llvm::CSKY::Fixups FIXUP>
117 template <llvm::CSKY::Fixups FIXUP>
132 template <llvm::CSKY::Fixups FIXUP>
153 MCFixupKind Kind = MCFixupKind(CSKY::fixup_csky_pcrel_imm26_scale2);
167 MCFixupKind Kind = MCFixupKind(CSKY::fixup_csky_pcrel_imm18_scale2);
H A DCSKYAsmBackend.h1 //===-- CSKYAsmBackend.h - CSKY Assembler Backend -------------------------===//
26 return CSKY::NumTargetFixupKinds;
/openbsd-current/gnu/llvm/llvm/include/llvm/TargetParser/
H A DCSKYTargetParser.h1 //===-- CSKYTargetParser - Parser for CSKY target features --------*- C++
10 // This file implements a target parser to recognise CSKY hardware features
24 namespace CSKY { namespace in namespace:llvm
84 MAEK_E1 = CSKY::AEK_E1 | CSKY::AEK_ELRW,
85 MAEK_E2 = CSKY::AEK_E2 | CSKY::MAEK_E1,
86 MAEK_2E3 = CSKY::AEK_2E3 | CSKY::MAEK_E2,
87 MAEK_MP = CSKY
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Target/CSKY/
H A DCSKYInstrInfo.cpp1 //===-- CSKYInstrInfo.h - CSKY Instruction Information --------*- C++ -*---===//
9 // This file contains the CSKY implementation of the TargetInstrInfo class.
28 : CSKYGenInstrInfo(CSKY::ADJCALLSTACKDOWN, CSKY::ADJCALLSTACKUP), STI(STI) {
163 "CSKY branch conditions have two components!");
167 MachineInstr &MI = *BuildMI(&MBB, DL, get(CSKY::BR32)).addMBB(TBB);
184 MachineInstr &MI = *BuildMI(&MBB, DL, get(CSKY::BR32)).addMBB(FBB);
194 case CSKY::BT32:
195 return CSKY::BF32;
196 case CSKY
[all...]
H A DCSKYRegisterInfo.cpp1 //===-- CSKYRegisterInfo.h - CSKY Register Information Impl ---*- C++ -*---===//
9 // This file contains the CSKY implementation of the TargetRegisterInfo class.
14 #include "CSKY.h"
27 : CSKYGenRegisterInfo(CSKY::R15, 0, 0, 0) {}
42 return TFI->hasFP(MF) ? CSKY::R8 : CSKY::R14;
53 markSuperRegs(Reserved, CSKY::R7); // bp
56 markSuperRegs(Reserved, CSKY::R8); // fp
60 markSuperRegs(Reserved, CSKY::R8 + i); // R8 - R13
63 markSuperRegs(Reserved, CSKY
[all...]
H A DCSKYCallingConv.h1 //=== CSKYCallingConv.h - CSKY Custom Calling Convention Routines -*-C++-*-===//
9 // This file contains the custom routines for the CSKY Calling Convention that
17 #include "CSKY.h"
29 static const MCPhysReg ArgGPRs[] = {CSKY::R0, CSKY::R1, CSKY::R2, CSKY::R3};
48 static const MCPhysReg ArgGPRs[] = {CSKY::R0, CSKY::R1};
H A DCSKYISelLowering.cpp1 //===-- CSKYISelLowering.cpp - CSKY DAG Lowering Implementation ----------===//
9 // This file defines the interfaces that CSKY uses to lower LLVM code into a
34 static const MCPhysReg GPRArgRegs[] = {CSKY::R0, CSKY::R1, CSKY::R2, CSKY::R3};
40 addRegisterClass(MVT::i32, &CSKY::GPRRegClass);
44 addRegisterClass(MVT::f32, &CSKY::sFPR32RegClass);
46 addRegisterClass(MVT::f32, &CSKY::FPR32RegClass);
49 addRegisterClass(MVT::f64, &CSKY
[all...]
H A DCSKYFrameLowering.cpp1 //===-- CSKYFrameLowering.cpp - CSKY Frame Information ------------------===//
9 // This file contains the CSKY implementation of TargetFrameLowering class.
30 static Register getFPReg(const CSKYSubtarget &STI) { return CSKY::R8; }
34 static Register getBPReg(const CSKYSubtarget &STI) { return CSKY::R7; }
89 Register SPReg = CSKY::R14;
97 BuildMI(MBB, MBBI, DL, TII->get(CSKY::NIE));
173 BuildMI(MBB, MBBI, DL, TII->get(CSKY::ANDNI32), SPReg)
181 MF.getRegInfo().createVirtualRegister(&CSKY::GPRRegClass);
182 BuildMI(MBB, MBBI, DL, TII->get(CSKY::LSRI32), VR)
185 BuildMI(MBB, MBBI, DL, TII->get(CSKY
[all...]
H A DCSKYISelDAGToDAG.cpp1 //===-- CSKYISelDAGToDAG.cpp - A dag to dag inst selector for CSKY---------===//
9 // This file defines an instruction selector for the CSKY target.
13 #include "CSKY.h"
24 #define PASS_NAME "CSKY DAG->DAG Pattern Instruction Selection"
94 ReplaceNode(N, CurDAG->getMachineNode(Subtarget->hasE2() ? CSKY::ADDI32
95 : CSKY::ADDI16XZ,
186 if ((!IsTiedToChangedOp && (!HasRC || RC != CSKY::GPRRegClassID)) ||
203 Register GPVR = MRI.createVirtualRegister(&CSKY::GPRPairRegClass);
213 CurDAG->getTargetExtractSubreg(CSKY::sub32_0, dl, MVT::i32, RegCopy);
215 CurDAG->getTargetExtractSubreg(CSKY
[all...]
H A DCSKYConstantIslandPass.cpp10 // Loading constants inline is expensive on CSKY and it's in general better
20 #include "CSKY.h"
60 #define DEBUG_TYPE "CSKY-constant-islands"
72 /// CSKYConstantIslands - Due to limited PC-relative displacements, CSKY
216 StringRef getPassName() const override { return "CSKY Constant Islands"; }
409 BuildMI(*BB, InsAt, DebugLoc(), TII->get(CSKY::CONSTPOOL_ENTRY))
467 assert(CPEMI.getOpcode() == CSKY::CONSTPOOL_ENTRY);
507 int UOpc = CSKY::BR32;
510 case CSKY::BR16:
511 case CSKY
[all...]
H A DCSKYAsmPrinter.cpp1 //===-- CSKYAsmPrinter.cpp - CSKY LLVM assembly writer --------------------===//
10 // of machine-dependent LLVM code to the CSKY assembly language.
14 #include "CSKY.h"
80 auto Instr = BuildMI(*MF, DL, TII->get(CSKY::LRW32))
87 Instr = BuildMI(*MF, DL, TII->get(CSKY::GRS32))
152 if (InConstantPool && MI->getOpcode() != CSKY::CONSTPOOL_ENTRY) {
156 if (MI->getOpcode() == CSKY::PseudoTLSLA32)
159 if (MI->getOpcode() == CSKY::CONSTPOOL_ENTRY)
167 // Convert a CSKY-specific constant pool modifier into the associated
290 if (MO.getReg() == CSKY
[all...]
/openbsd-current/gnu/llvm/llvm/lib/TargetParser/
H A DCSKYTargetParser.cpp10 // This file implements a target parser to recognise CSKY hardware features
20 bool CSKY::getFPUFeatures(CSKYFPUKind CSKYFPUKind,
75 StringRef CSKY::getArchName(ArchKind AK) {
80 StringRef CSKY::getDefaultCPU(StringRef Arch) {
82 if (AK == CSKY::ArchKind::INVALID)
91 CSKY::ArchKind CSKY::parseArch(StringRef Arch) {
97 return CSKY::ArchKind::INVALID;
100 CSKY::ArchKind CSKY
[all...]
/openbsd-current/gnu/llvm/clang/lib/Driver/ToolChains/Arch/
H A DCSKY.cpp1 //===--- CSKY.cpp - CSKY Helpers for Tools --------------------*- C++ -*-===//
9 #include "CSKY.h"
31 llvm::CSKY::ArchKind ArchKind = llvm::CSKY::parseArch(A->getValue());
33 if (ArchKind == llvm::CSKY::ArchKind::INVALID) {
41 llvm::CSKY::ArchKind ArchKind = llvm::CSKY::parseCPUArch(A->getValue());
42 if (ArchKind == llvm::CSKY::ArchKind::INVALID) {
46 return std::optional<llvm::StringRef>(llvm::CSKY
[all...]
/openbsd-current/gnu/llvm/llvm/lib/Target/CSKY/AsmParser/
H A DCSKYAsmParser.cpp1 //===---- CSKYAsmParser.cpp - Parse CSKY assembly to MCInst instructions --===//
332 bool isRegSeq() const { return isRegSeqTemplate<CSKY::R0, CSKY::R31>(); }
335 return isRegSeqTemplate<CSKY::F0_32, CSKY::F15_32>();
339 return isRegSeqTemplate<CSKY::F0_32, CSKY::F31_32>();
347 if (from != CSKY::R4 && from != CSKY::R15 && from != CSKY
[all...]
/openbsd-current/gnu/llvm/clang/lib/Basic/Targets/
H A DCSKY.cpp1 //===--- CSKY.cpp - Implement CSKY target feature support -----------------===//
9 // This file implements CSKY TargetInfo objects.
13 #include "CSKY.h"
19 return llvm::CSKY::parseCPUArch(Name) != llvm::CSKY::ArchKind::INVALID;
23 llvm::CSKY::ArchKind archKind = llvm::CSKY::parseCPUArch(Name);
24 bool isValid = (archKind != llvm::CSKY::ArchKind::INVALID);
48 if (Arch != llvm::CSKY
[all...]
H A DCSKY.h1 //===--- CSKY.h - Declare CSKY target feature support -----------*- C++ -*-===//
9 // This file declares CSKY TargetInfo objects.
26 llvm::CSKY::ArchKind Arch = llvm::CSKY::ArchKind::INVALID;
/openbsd-current/gnu/llvm/clang/lib/Driver/ToolChains/
H A DCSKYToolChain.h1 //===--- CSKYToolchain.h - CSKY ToolChain Implementations -----*- C++ -*-===//
46 namespace CSKY { namespace in namespace:clang::driver::tools
49 Linker(const ToolChain &TC) : Tool("CSKY::Linker", "ld", TC) {}
57 } // end namespace CSKY

Completed in 220 milliseconds

12