Home
last modified time | relevance | path

Searched refs:AVR (Results 1 – 25 of 133) sorted by relevance

123456

/external/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
DAVRELFObjectWriter.cpp79 case AVR::fixup_32: in getRelocType()
81 case AVR::fixup_7_pcrel: in getRelocType()
83 case AVR::fixup_13_pcrel: in getRelocType()
85 case AVR::fixup_16: in getRelocType()
87 case AVR::fixup_16_pm: in getRelocType()
89 case AVR::fixup_lo8_ldi: in getRelocType()
91 case AVR::fixup_hi8_ldi: in getRelocType()
93 case AVR::fixup_hh8_ldi: in getRelocType()
95 case AVR::fixup_lo8_ldi_neg: in getRelocType()
97 case AVR::fixup_hi8_ldi_neg: in getRelocType()
[all …]
DAVRELFStreamer.cpp16 if (Features[AVR::ELFArchAVR1]) in getEFlagsForFeatureSet()
18 else if (Features[AVR::ELFArchAVR2]) in getEFlagsForFeatureSet()
20 else if (Features[AVR::ELFArchAVR25]) in getEFlagsForFeatureSet()
22 else if (Features[AVR::ELFArchAVR3]) in getEFlagsForFeatureSet()
24 else if (Features[AVR::ELFArchAVR31]) in getEFlagsForFeatureSet()
26 else if (Features[AVR::ELFArchAVR35]) in getEFlagsForFeatureSet()
28 else if (Features[AVR::ELFArchAVR4]) in getEFlagsForFeatureSet()
30 else if (Features[AVR::ELFArchAVR5]) in getEFlagsForFeatureSet()
32 else if (Features[AVR::ELFArchAVR51]) in getEFlagsForFeatureSet()
34 else if (Features[AVR::ELFArchAVR6]) in getEFlagsForFeatureSet()
[all …]
DAVRAsmBackend.cpp84 AVR::fixups::adjustBranchTarget(Value); in adjustBranch()
95 AVR::fixups::adjustBranchTarget(Value); in adjustRelativeBranch()
253 case AVR::fixup_7_pcrel: in adjustFixupValue()
256 case AVR::fixup_13_pcrel: in adjustFixupValue()
259 case AVR::fixup_call: in adjustFixupValue()
262 case AVR::fixup_ldi: in adjustFixupValue()
265 case AVR::fixup_lo8_ldi: in adjustFixupValue()
268 case AVR::fixup_lo8_ldi_pm: in adjustFixupValue()
269 case AVR::fixup_lo8_ldi_gs: in adjustFixupValue()
273 case AVR::fixup_hi8_ldi: in adjustFixupValue()
[all …]
DAVRMCExpr.cpp144 AVR::Fixups AVRMCExpr::getFixupKind() const { in getFixupKind()
145 AVR::Fixups Kind = AVR::Fixups::LastTargetFixupKind; in getFixupKind()
149 Kind = isNegated() ? AVR::fixup_lo8_ldi_neg : AVR::fixup_lo8_ldi; in getFixupKind()
152 Kind = isNegated() ? AVR::fixup_hi8_ldi_neg : AVR::fixup_hi8_ldi; in getFixupKind()
155 Kind = isNegated() ? AVR::fixup_hh8_ldi_neg : AVR::fixup_hh8_ldi; in getFixupKind()
158 Kind = isNegated() ? AVR::fixup_ms8_ldi_neg : AVR::fixup_ms8_ldi; in getFixupKind()
162 Kind = isNegated() ? AVR::fixup_lo8_ldi_pm_neg : AVR::fixup_lo8_ldi_pm; in getFixupKind()
165 Kind = isNegated() ? AVR::fixup_hi8_ldi_pm_neg : AVR::fixup_hi8_ldi_pm; in getFixupKind()
168 Kind = isNegated() ? AVR::fixup_hh8_ldi_pm_neg : AVR::fixup_hh8_ldi_pm; in getFixupKind()
171 Kind = AVR::fixup_16_pm; in getFixupKind()
[all …]
DAVRInstPrinter.cpp44 case AVR::LDRdPtr: in printInst()
45 case AVR::LDRdPtrPi: in printInst()
46 case AVR::LDRdPtrPd: in printInst()
51 if (Opcode == AVR::LDRdPtrPd) in printInst()
56 if (Opcode == AVR::LDRdPtrPi) in printInst()
59 case AVR::STPtrRr: in printInst()
65 case AVR::STPtrPiRr: in printInst()
66 case AVR::STPtrPdRr: in printInst()
69 if (Opcode == AVR::STPtrPdRr) in printInst()
74 if (Opcode == AVR::STPtrPiRr) in printInst()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/MCTargetDesc/
DAVRELFObjectWriter.cpp79 case AVR::fixup_32: in getRelocType()
81 case AVR::fixup_7_pcrel: in getRelocType()
83 case AVR::fixup_13_pcrel: in getRelocType()
85 case AVR::fixup_16: in getRelocType()
87 case AVR::fixup_16_pm: in getRelocType()
89 case AVR::fixup_lo8_ldi: in getRelocType()
91 case AVR::fixup_hi8_ldi: in getRelocType()
93 case AVR::fixup_hh8_ldi: in getRelocType()
95 case AVR::fixup_lo8_ldi_neg: in getRelocType()
97 case AVR::fixup_hi8_ldi_neg: in getRelocType()
[all …]
DAVRELFStreamer.cpp16 if (Features[AVR::ELFArchAVR1]) in getEFlagsForFeatureSet()
18 else if (Features[AVR::ELFArchAVR2]) in getEFlagsForFeatureSet()
20 else if (Features[AVR::ELFArchAVR25]) in getEFlagsForFeatureSet()
22 else if (Features[AVR::ELFArchAVR3]) in getEFlagsForFeatureSet()
24 else if (Features[AVR::ELFArchAVR31]) in getEFlagsForFeatureSet()
26 else if (Features[AVR::ELFArchAVR35]) in getEFlagsForFeatureSet()
28 else if (Features[AVR::ELFArchAVR4]) in getEFlagsForFeatureSet()
30 else if (Features[AVR::ELFArchAVR5]) in getEFlagsForFeatureSet()
32 else if (Features[AVR::ELFArchAVR51]) in getEFlagsForFeatureSet()
34 else if (Features[AVR::ELFArchAVR6]) in getEFlagsForFeatureSet()
[all …]
DAVRAsmBackend.cpp82 AVR::fixups::adjustBranchTarget(Value); in adjustBranch()
95 AVR::fixups::adjustBranchTarget(Value); in adjustRelativeBranch()
254 case AVR::fixup_7_pcrel: in adjustFixupValue()
257 case AVR::fixup_13_pcrel: in adjustFixupValue()
260 case AVR::fixup_call: in adjustFixupValue()
263 case AVR::fixup_ldi: in adjustFixupValue()
266 case AVR::fixup_lo8_ldi: in adjustFixupValue()
269 case AVR::fixup_lo8_ldi_pm: in adjustFixupValue()
270 case AVR::fixup_lo8_ldi_gs: in adjustFixupValue()
274 case AVR::fixup_hi8_ldi: in adjustFixupValue()
[all …]
DAVRMCExpr.cpp144 AVR::Fixups AVRMCExpr::getFixupKind() const { in getFixupKind()
145 AVR::Fixups Kind = AVR::Fixups::LastTargetFixupKind; in getFixupKind()
149 Kind = isNegated() ? AVR::fixup_lo8_ldi_neg : AVR::fixup_lo8_ldi; in getFixupKind()
152 Kind = isNegated() ? AVR::fixup_hi8_ldi_neg : AVR::fixup_hi8_ldi; in getFixupKind()
155 Kind = isNegated() ? AVR::fixup_hh8_ldi_neg : AVR::fixup_hh8_ldi; in getFixupKind()
158 Kind = isNegated() ? AVR::fixup_ms8_ldi_neg : AVR::fixup_ms8_ldi; in getFixupKind()
162 Kind = isNegated() ? AVR::fixup_lo8_ldi_pm_neg : AVR::fixup_lo8_ldi_pm; in getFixupKind()
165 Kind = isNegated() ? AVR::fixup_hi8_ldi_pm_neg : AVR::fixup_hi8_ldi_pm; in getFixupKind()
168 Kind = isNegated() ? AVR::fixup_hh8_ldi_pm_neg : AVR::fixup_hh8_ldi_pm; in getFixupKind()
171 Kind = AVR::fixup_16_pm; in getFixupKind()
[all …]
DAVRInstPrinter.cpp44 case AVR::LDRdPtr: in printInst()
45 case AVR::LDRdPtrPi: in printInst()
46 case AVR::LDRdPtrPd: in printInst()
51 if (Opcode == AVR::LDRdPtrPd) in printInst()
56 if (Opcode == AVR::LDRdPtrPi) in printInst()
59 case AVR::STPtrRr: in printInst()
65 case AVR::STPtrPiRr: in printInst()
66 case AVR::STPtrPdRr: in printInst()
69 if (Opcode == AVR::STPtrPdRr) in printInst()
74 if (Opcode == AVR::STPtrPiRr) in printInst()
[all …]
/external/llvm-project/llvm/lib/Target/AVR/
DAVRInstrInfo.cpp39 : AVRGenInstrInfo(AVR::ADJCALLSTACKDOWN, AVR::ADJCALLSTACKUP), RI() {} in AVRInstrInfo()
50 if (AVR::DREGSRegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
51 if (STI.hasMOVW() && AVR::DREGSMOVWRegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
52 BuildMI(MBB, MI, DL, get(AVR::MOVWRdRr), DestReg) in copyPhysReg()
61 BuildMI(MBB, MI, DL, get(AVR::MOVRdRr), DestLo) in copyPhysReg()
63 BuildMI(MBB, MI, DL, get(AVR::MOVRdRr), DestHi) in copyPhysReg()
67 if (AVR::GPR8RegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
68 Opc = AVR::MOVRdRr; in copyPhysReg()
69 } else if (SrcReg == AVR::SP && AVR::DREGSRegClass.contains(DestReg)) { in copyPhysReg()
70 Opc = AVR::SPREAD; in copyPhysReg()
[all …]
DAVRRegisterInfo.cpp60 Reserved.set(AVR::R0); in getReservedRegs()
61 Reserved.set(AVR::R1); in getReservedRegs()
62 Reserved.set(AVR::R1R0); in getReservedRegs()
65 Reserved.set(AVR::SPL); in getReservedRegs()
66 Reserved.set(AVR::SPH); in getReservedRegs()
67 Reserved.set(AVR::SP); in getReservedRegs()
78 Reserved.set(AVR::R28); in getReservedRegs()
79 Reserved.set(AVR::R29); in getReservedRegs()
80 Reserved.set(AVR::R29R28); in getReservedRegs()
90 return &AVR::DREGSRegClass; in getLargestLegalSuperClass()
[all …]
DAVRFrameLowering.cpp63 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue()
71 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) in emitPrologue()
72 .addReg(AVR::R1R0, RegState::Kill) in emitPrologue()
75 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), AVR::R0) in emitPrologue()
78 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue()
79 .addReg(AVR::R0, RegState::Kill) in emitPrologue()
81 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) in emitPrologue()
82 .addReg(AVR::R0, RegState::Define) in emitPrologue()
83 .addReg(AVR::R0, RegState::Kill) in emitPrologue()
84 .addReg(AVR::R0, RegState::Kill) in emitPrologue()
[all …]
DAVRExpandPseudoInsts.cpp54 const Register SCRATCH_REGISTER = AVR::R0;
56 const Register ZERO_REGISTER = AVR::R1;
211 if (Op == AVR::ANDIRdK && ImmVal == 0xff) in isLogicImmOpRedundant()
215 if (Op == AVR::ORIRdK && ImmVal == 0x0) in isLogicImmOpRedundant()
259 bool AVRExpandPseudo::expand<AVR::ADDWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
260 return expandArith(AVR::ADDRdRr, AVR::ADCRdRr, MBB, MBBI); in expand()
264 bool AVRExpandPseudo::expand<AVR::ADCWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
265 return expandArith(AVR::ADCRdRr, AVR::ADCRdRr, MBB, MBBI); in expand()
269 bool AVRExpandPseudo::expand<AVR::SUBWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
270 return expandArith(AVR::SUBRdRr, AVR::SBCRdRr, MBB, MBBI); in expand()
[all …]
DAVRISelLowering.cpp39 addRegisterClass(MVT::i8, &AVR::GPR8RegClass); in AVRTargetLowering()
40 addRegisterClass(MVT::i16, &AVR::DREGSRegClass); in AVRTargetLowering()
48 setStackPointerRegisterToSaveRestore(AVR::SP); in AVRTargetLowering()
754 if (isa<PointerType>(Ty) && AS == AVR::ProgramMemory) { in isLegalAddressingMode()
784 if (AVR::isProgramMemoryAccess(LD)) { in getPreIndexedAddressParts()
790 if (AVR::isProgramMemoryAccess(ST)) { in getPreIndexedAddressParts()
841 if (AVR::isProgramMemoryAccess(ST)) { in getPostIndexedAddressParts()
888 AVR::R25, AVR::R24, AVR::R23, AVR::R22, AVR::R21, AVR::R20,
889 AVR::R19, AVR::R18, AVR::R17, AVR::R16, AVR::R15, AVR::R14,
890 AVR::R13, AVR::R12, AVR::R11, AVR::R10, AVR::R9, AVR::R8};
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AVR/
DAVRInstrInfo.cpp39 : AVRGenInstrInfo(AVR::ADJCALLSTACKDOWN, AVR::ADJCALLSTACKUP), RI() {} in AVRInstrInfo()
50 if (AVR::DREGSRegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
52 BuildMI(MBB, MI, DL, get(AVR::MOVWRdRr), DestReg) in copyPhysReg()
61 BuildMI(MBB, MI, DL, get(AVR::MOVRdRr), DestLo) in copyPhysReg()
63 BuildMI(MBB, MI, DL, get(AVR::MOVRdRr), DestHi) in copyPhysReg()
67 if (AVR::GPR8RegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
68 Opc = AVR::MOVRdRr; in copyPhysReg()
69 } else if (SrcReg == AVR::SP && AVR::DREGSRegClass.contains(DestReg)) { in copyPhysReg()
70 Opc = AVR::SPREAD; in copyPhysReg()
71 } else if (DestReg == AVR::SP && AVR::DREGSRegClass.contains(SrcReg)) { in copyPhysReg()
[all …]
DAVRRegisterInfo.cpp57 Reserved.set(AVR::R0); in getReservedRegs()
58 Reserved.set(AVR::R1); in getReservedRegs()
59 Reserved.set(AVR::R1R0); in getReservedRegs()
62 Reserved.set(AVR::SPL); in getReservedRegs()
63 Reserved.set(AVR::SPH); in getReservedRegs()
64 Reserved.set(AVR::SP); in getReservedRegs()
75 Reserved.set(AVR::R28); in getReservedRegs()
76 Reserved.set(AVR::R29); in getReservedRegs()
77 Reserved.set(AVR::R29R28); in getReservedRegs()
87 return &AVR::DREGSRegClass; in getLargestLegalSuperClass()
[all …]
DAVRFrameLowering.cpp64 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) in emitPrologue()
71 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) in emitPrologue()
72 .addReg(AVR::R29R28, RegState::Kill) in emitPrologue()
80 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHWRr)) in emitPrologue()
81 .addReg(AVR::R1R0, RegState::Kill) in emitPrologue()
84 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), AVR::R0) in emitPrologue()
87 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) in emitPrologue()
88 .addReg(AVR::R0, RegState::Kill) in emitPrologue()
90 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) in emitPrologue()
91 .addReg(AVR::R0, RegState::Define) in emitPrologue()
[all …]
DAVRExpandPseudoInsts.cpp54 const unsigned SCRATCH_REGISTER = AVR::R0;
56 const unsigned ZERO_REGISTER = AVR::R1;
211 if (Op == AVR::ANDIRdK && ImmVal == 0xff) in isLogicImmOpRedundant()
215 if (Op == AVR::ORIRdK && ImmVal == 0x0) in isLogicImmOpRedundant()
259 bool AVRExpandPseudo::expand<AVR::ADDWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
260 return expandArith(AVR::ADDRdRr, AVR::ADCRdRr, MBB, MBBI); in expand()
264 bool AVRExpandPseudo::expand<AVR::ADCWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
265 return expandArith(AVR::ADCRdRr, AVR::ADCRdRr, MBB, MBBI); in expand()
269 bool AVRExpandPseudo::expand<AVR::SUBWRdRr>(Block &MBB, BlockIt MBBI) { in expand()
270 return expandArith(AVR::SUBRdRr, AVR::SBCRdRr, MBB, MBBI); in expand()
[all …]
DAVRISelLowering.cpp38 addRegisterClass(MVT::i8, &AVR::GPR8RegClass); in AVRTargetLowering()
39 addRegisterClass(MVT::i16, &AVR::DREGSRegClass); in AVRTargetLowering()
47 setStackPointerRegisterToSaveRestore(AVR::SP); in AVRTargetLowering()
755 if (isa<PointerType>(Ty) && AS == AVR::ProgramMemory) { in isLegalAddressingMode()
785 if (AVR::isProgramMemoryAccess(LD)) { in getPreIndexedAddressParts()
791 if (AVR::isProgramMemoryAccess(ST)) { in getPreIndexedAddressParts()
842 if (AVR::isProgramMemoryAccess(ST)) { in getPostIndexedAddressParts()
939 static const MCPhysReg RegList8[] = {AVR::R24, AVR::R22, AVR::R20, in analyzeStandardArguments()
940 AVR::R18, AVR::R16, AVR::R14, in analyzeStandardArguments()
941 AVR::R12, AVR::R10, AVR::R8}; in analyzeStandardArguments()
[all …]
/external/llvm/lib/Target/AVR/
DAVRRegisterInfo.cpp59 Reserved.set(AVR::R0); in getReservedRegs()
60 Reserved.set(AVR::R1); in getReservedRegs()
61 Reserved.set(AVR::R1R0); in getReservedRegs()
64 Reserved.set(AVR::SPL); in getReservedRegs()
65 Reserved.set(AVR::SPH); in getReservedRegs()
66 Reserved.set(AVR::SP); in getReservedRegs()
70 Reserved.set(AVR::R28); in getReservedRegs()
71 Reserved.set(AVR::R29); in getReservedRegs()
72 Reserved.set(AVR::R29R28); in getReservedRegs()
82 return &AVR::DREGSRegClass; in getLargestLegalSuperClass()
[all …]
DAVRInstrInfo.cpp39 : AVRGenInstrInfo(AVR::ADJCALLSTACKDOWN, AVR::ADJCALLSTACKUP), RI() {} in AVRInstrInfo()
47 if (AVR::GPR8RegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
48 Opc = AVR::MOVRdRr; in copyPhysReg()
49 } else if (AVR::DREGSRegClass.contains(DestReg, SrcReg)) { in copyPhysReg()
50 Opc = AVR::MOVWRdRr; in copyPhysReg()
51 } else if (SrcReg == AVR::SP && AVR::DREGSRegClass.contains(DestReg)) { in copyPhysReg()
52 Opc = AVR::SPREAD; in copyPhysReg()
53 } else if (DestReg == AVR::SP && AVR::DREGSRegClass.contains(SrcReg)) { in copyPhysReg()
54 Opc = AVR::SPWRITE; in copyPhysReg()
66 case AVR::LDDRdPtrQ: in isLoadFromStackSlot()
[all …]
/external/llvm/lib/Target/AVR/MCTargetDesc/
DAVRELFStreamer.cpp14 if (Features[AVR::ELFArchAVR1]) in getEFlagsForFeatureSet()
16 else if (Features[AVR::ELFArchAVR2]) in getEFlagsForFeatureSet()
18 else if (Features[AVR::ELFArchAVR25]) in getEFlagsForFeatureSet()
20 else if (Features[AVR::ELFArchAVR3]) in getEFlagsForFeatureSet()
22 else if (Features[AVR::ELFArchAVR31]) in getEFlagsForFeatureSet()
24 else if (Features[AVR::ELFArchAVR35]) in getEFlagsForFeatureSet()
26 else if (Features[AVR::ELFArchAVR4]) in getEFlagsForFeatureSet()
28 else if (Features[AVR::ELFArchAVR5]) in getEFlagsForFeatureSet()
30 else if (Features[AVR::ELFArchAVR51]) in getEFlagsForFeatureSet()
32 else if (Features[AVR::ELFArchAVR6]) in getEFlagsForFeatureSet()
[all …]
/external/llvm-project/llvm/lib/Target/AVR/Disassembler/
DAVRDisassembler.cpp61 AVR::R0, AVR::R1, AVR::R2, AVR::R3,
62 AVR::R4, AVR::R5, AVR::R6, AVR::R7,
63 AVR::R8, AVR::R9, AVR::R10, AVR::R11,
64 AVR::R12, AVR::R13, AVR::R14, AVR::R15,
65 AVR::R16, AVR::R17, AVR::R18, AVR::R19,
66 AVR::R20, AVR::R21, AVR::R22, AVR::R23,
67 AVR::R24, AVR::R25, AVR::R26, AVR::R27,
68 AVR::R28, AVR::R29, AVR::R30, AVR::R31,
183 Inst.addOperand(MCOperand::createReg(AVR::R31R30)); in decodeFLPMX()
/external/llvm/test/Object/
Dobj2yaml.test6 RUN: obj2yaml %p/Inputs/trivial-object-test.elf-avr | FileCheck %s --check-prefix ELF-AVR
414 ELF-AVR: FileHeader:
415 ELF-AVR-NEXT: Class: ELFCLASS32
416 ELF-AVR-NEXT: Data: ELFDATA2LSB
417 ELF-AVR-NEXT: Type: ET_EXEC
418 ELF-AVR-NEXT: Machine: EM_AVR
419 ELF-AVR-NEXT: Flags: [ EF_AVR_ARCH_AVR2 ]
420 ELF-AVR-NEXT: Sections:
421 ELF-AVR-NEXT: - Name: .text
422 ELF-AVR-NEXT: Type: SHT_PROGBITS
[all …]

123456