/openbsd-current/gnu/llvm/llvm/lib/Target/AVR/MCTargetDesc/ |
H A D | AVRELFStreamer.cpp | 17 if (Features[AVR::ELFArchAVR1]) 19 else if (Features[AVR::ELFArchAVR2]) 21 else if (Features[AVR::ELFArchAVR25]) 23 else if (Features[AVR::ELFArchAVR3]) 25 else if (Features[AVR::ELFArchAVR31]) 27 else if (Features[AVR::ELFArchAVR35]) 29 else if (Features[AVR::ELFArchAVR4]) 31 else if (Features[AVR::ELFArchAVR5]) 33 else if (Features[AVR::ELFArchAVR51]) 35 else if (Features[AVR [all...] |
H A D | AVRELFObjectWriter.cpp | 1 //===-- AVRELFObjectWriter.cpp - AVR ELF Writer ---------------------------===// 23 /// Writes AVR machine code into an ELF32 object file. 81 case AVR::fixup_32: 83 case AVR::fixup_7_pcrel: 85 case AVR::fixup_13_pcrel: 87 case AVR::fixup_16: 89 case AVR::fixup_16_pm: 91 case AVR::fixup_lo8_ldi: 93 case AVR::fixup_hi8_ldi: 95 case AVR [all...] |
H A D | AVRInstPrinter.cpp | 1 //===-- AVRInstPrinter.cpp - Convert AVR MCInst to assembly syntax --------===// 9 // This class prints an AVR MCInst to a .s file. 44 case AVR::LDRdPtr: 45 case AVR::LDRdPtrPi: 46 case AVR::LDRdPtrPd: 51 if (Opcode == AVR::LDRdPtrPd) 56 if (Opcode == AVR::LDRdPtrPi) 59 case AVR::STPtrRr: 65 case AVR::STPtrPiRr: 66 case AVR [all...] |
H A D | AVRAsmBackend.cpp | 1 //===-- AVRAsmBackend.cpp - AVR Asm Backend ------------------------------===// 84 AVR::fixups::adjustBranchTarget(Value); 95 AVR::fixups::adjustBranchTarget(Value); 262 case AVR::fixup_7_pcrel: 265 case AVR::fixup_13_pcrel: 268 case AVR::fixup_call: 271 case AVR::fixup_ldi: 274 case AVR::fixup_lo8_ldi: 277 case AVR::fixup_lo8_ldi_pm: 278 case AVR [all...] |
H A D | AVRMCExpr.cpp | 1 //===-- AVRMCExpr.cpp - AVR specific MC expression classes ----------------===// 149 AVR::Fixups AVRMCExpr::getFixupKind() const { 150 AVR::Fixups Kind = AVR::Fixups::LastTargetFixupKind; 154 Kind = isNegated() ? AVR::fixup_lo8_ldi_neg : AVR::fixup_lo8_ldi; 157 Kind = isNegated() ? AVR::fixup_hi8_ldi_neg : AVR::fixup_hi8_ldi; 160 Kind = isNegated() ? AVR::fixup_hh8_ldi_neg : AVR [all...] |
H A D | AVRMCCodeEmitter.cpp | 1 //===-- AVRMCCodeEmitter.cpp - Convert AVR Code to Machine Code -----------===// 77 bool IsRegX = MI.getOperand(0).getReg() == AVR::R27R26 || 78 MI.getOperand(1).getReg() == AVR::R27R26; 80 bool IsPredec = Opcode == AVR::LDRdPtrPd || Opcode == AVR::STPtrPdRr; 81 bool IsPostinc = Opcode == AVR::LDRdPtrPi || Opcode == AVR::STPtrPiRr; 91 template <AVR::Fixups Fixup> 109 AVR::fixups::adjustBranchTarget(target); 122 case AVR [all...] |
H A D | AVRFixupKinds.h | 1 //===-- AVRFixupKinds.h - AVR Specific Fixup Entries ------------*- C++ -*-===// 15 namespace AVR { namespace in namespace:llvm 24 /// MCFixupKindInfo Infos[AVR::NumTargetFixupKinds] 27 /// A 32-bit AVR fixup. 37 /// The nonmenclature is that AVR branch targets are 136 /// All branch targets in AVR are rightshifted by 1 to take advantage 144 } // namespace AVR
|
H A D | AVRMCCodeEmitter.h | 1 //===-- AVRMCCodeEmitter.h - Convert AVR Code to Machine Code -------------===// 36 /// Writes AVR machine code to a stream. 50 template <AVR::Fixups Fixup> 72 template <AVR::Fixups Fixup, unsigned Offset>
|
H A D | AVRAsmBackend.h | 1 //===-- AVRAsmBackend.h - AVR Asm Backend --------------------------------===// 9 // \file The AVR assembly backend implementation. 28 /// Utilities for manipulating generated AVR machine code. 49 return AVR::NumTargetFixupKinds;
|
H A D | AVRInstPrinter.h | 1 //===- AVRInstPrinter.h - Convert AVR MCInst to assembly syntax -*- C++ -*-===// 9 // This class prints an AVR MCInst to a .s file. 22 /// Prints AVR instructions to a textual stream. 37 unsigned AltIdx = AVR::NoRegAltName);
|
H A D | AVRMCExpr.h | 1 //===-- AVRMCExpr.h - AVR specific MC expression classes --------*- C++ -*-===// 18 /// A expression in AVR machine code. 41 /// Creates an AVR machine code expression. 51 AVR::Fixups getFixupKind() const;
|
/openbsd-current/gnu/llvm/llvm/lib/Target/AVR/ |
H A D | AVRTargetObjectFile.cpp | 1 //===-- AVRTargetObjectFile.cpp - AVR Object Files ------------------------===// 19 #include "AVR.h" 43 if (AVR::isProgramMemoryAddress(GO) && !GO->hasSection() && 45 // The AVR subtarget should support LPM to access section '.progmem*.data'. 50 "Current AVR subtarget does not support accessing program memory"); 53 // The AVR subtarget should support ELPM to access section 56 AVR::getAddressSpace(GO) != AVR::ProgramMemory) { 59 "Current AVR subtarget does not support " 63 switch (AVR [all...] |
H A D | AVRRegisterInfo.cpp | 1 //===-- AVRRegisterInfo.cpp - AVR Register Information --------------------===// 9 // This file contains the AVR implementation of the TargetRegisterInfo class. 23 #include "AVR.h" 61 Reserved.set(AVR::R0); 62 Reserved.set(AVR::R1); 63 Reserved.set(AVR::R1R0); 66 Reserved.set(AVR::SPL); 67 Reserved.set(AVR::SPH); 68 Reserved.set(AVR::SP); 73 for (unsigned Reg = AVR [all...] |
H A D | AVRInstrInfo.cpp | 1 //===-- AVRInstrInfo.cpp - AVR Instruction Information --------------------===// 9 // This file contains the AVR implementation of the TargetInstrInfo class. 27 #include "AVR.h" 39 : AVRGenInstrInfo(AVR::ADJCALLSTACKDOWN, AVR::ADJCALLSTACKUP), RI() {} 49 if (AVR::DREGSRegClass.contains(DestReg, SrcReg)) { 50 // If our AVR has `movw`, let's emit that; otherwise let's emit two separate 52 if (STI.hasMOVW() && AVR::DREGSMOVWRegClass.contains(DestReg, SrcReg)) { 53 BuildMI(MBB, MI, DL, get(AVR::MOVWRdRr), DestReg) 62 BuildMI(MBB, MI, DL, get(AVR [all...] |
H A D | AVRFrameLowering.cpp | 1 //===-- AVRFrameLowering.cpp - AVR Frame Information ----------------------===// 9 // This file contains the AVR implementation of TargetFrameLowering class. 15 #include "AVR.h" 64 BuildMI(MBB, MBBI, DL, TII.get(AVR::BSETs)) 72 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) 76 BuildMI(MBB, MBBI, DL, TII.get(AVR::INRdA), STI.getTmpRegister()) 79 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) 83 BuildMI(MBB, MBBI, DL, TII.get(AVR::PUSHRr)) 86 BuildMI(MBB, MBBI, DL, TII.get(AVR::EORRdRr)) 105 (MBBI->getOpcode() == AVR [all...] |
H A D | AVRExpandPseudoInsts.cpp | 15 #include "AVR.h" 27 #define AVR_EXPAND_PSEUDO_NAME "AVR pseudo instruction expansion pass" 32 /// actual AVR instructions. 217 if (Op == AVR::ANDIRdK && ImmVal == 0xff) 221 if (Op == AVR::ORIRdK && ImmVal == 0x0) 266 bool AVRExpandPseudo::expand<AVR::ADDWRdRr>(Block &MBB, BlockIt MBBI) { 267 return expandArith(AVR::ADDRdRr, AVR::ADCRdRr, MBB, MBBI); 271 bool AVRExpandPseudo::expand<AVR::ADCWRdRr>(Block &MBB, BlockIt MBBI) { 272 return expandArith(AVR [all...] |
H A D | AVRISelLowering.cpp | 1 //===-- AVRISelLowering.cpp - AVR DAG Lowering Implementation -------------===// 9 // This file defines the interfaces that AVR uses to lower LLVM code into a 28 #include "AVR.h" 40 addRegisterClass(MVT::i8, &AVR::GPR8RegClass); 41 addRegisterClass(MVT::i16, &AVR::DREGSRegClass); 49 setStackPointerRegisterToSaveRestore(AVR::SP); 168 // Do not use MUL. The AVR instructions are closer to SMUL_LOHI &co. 276 assert(!VT.isVector() && "No AVR SetCC type for vectors!"); 605 /// IntCCToAVRCC - Convert a DAG integer condition code to an AVR CC. 656 /// Returns appropriate AVR CM [all...] |
H A D | AVRISelDAGToDAG.cpp | 1 //===-- AVRISelDAGToDAG.cpp - A dag to dag inst selector for AVR ----------===// 9 // This file defines an instruction selector for the AVR target. 13 #include "AVR.h" 23 #define PASS_NAME "AVR DAG->DAG Instruction Selection" 29 /// Lowers LLVM IR (in DAG form) to AVR MC instructions (in DAG form). 153 Opcode = (isPre) ? AVR::LDRdPtrPd : AVR::LDRdPtrPi; 161 Opcode = (isPre) ? AVR::LDWRdPtrPd : AVR::LDWRdPtrPi; 192 Opcode = AVR [all...] |
H A D | AVRSubtarget.h | 1 //===-- AVRSubtarget.h - Define Subtarget for the AVR -----------*- C++ -*-===// 9 // This file declares the AVR specific subclass of TargetSubtargetInfo. 31 /// A specific AVR target MCU. 34 //! Creates an AVR subtarget. 64 // See AVR.td for details. 108 return hasTinyEncoding() ? AVR::R16 : AVR::R0; 111 return hasTinyEncoding() ? AVR::R17 : AVR::R1; 119 // See AVR [all...] |
H A D | AVRAsmPrinter.cpp | 1 //===-- AVRAsmPrinter.cpp - AVR LLVM assembly writer ----------------------===// 10 // of machine-dependent LLVM code to GAS-format AVR assembly language. 14 #include "AVR.h" 44 /// An AVR assembly code printer. 50 StringRef getPassName() const override { return "AVR Assembly Printer"; } 136 Reg = TRI.getSubReg(Reg, ByteNumber % BytesPerReg ? AVR::sub_hi 137 : AVR::sub_lo); 172 if (MI->getOperand(OpNum).getReg() == AVR::R31R30) { 174 } else if (MI->getOperand(OpNum).getReg() == AVR::R29R28) { 176 } else if (MI->getOperand(OpNum).getReg() == AVR [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Target/AVR/Disassembler/ |
H A D | AVRDisassembler.cpp | 1 //===- AVRDisassembler.cpp - Disassembler for AVR ---------------*- C++ -*-===// 9 // This file is part of the AVR Disassembler. 13 #include "AVR.h" 34 /// A disassembler class for AVR. 60 AVR::R0, AVR::R1, AVR::R2, AVR::R3, AVR::R4, AVR [all...] |
/openbsd-current/gnu/usr.bin/binutils/gas/config/ |
H A D | tc-avr.h | 24 #error AVR support requires BFD_ASSEMBLER 116 /* AVR port uses `$' as a logical line separator */
|
/openbsd-current/gnu/llvm/lld/ELF/Arch/ |
H A D | AVR.cpp | 1 //===- AVR.cpp ------------------------------------------------------------===// 9 // AVR is a Harvard-architecture 8-bit microcontroller designed for small 10 // baremetal programs. All AVR-family processors have 32 8-bit registers. 11 // The tiniest AVR has 32 byte RAM and 1 KiB program memory, and the largest 23 // Note that the current AVR support is very preliminary so you can't 43 class AVR final : public TargetInfo { 53 RelExpr AVR::getRelExpr(RelType type, const Symbol &s, 96 void AVR::relocate(uint8_t *loc, const Relocation &rel, uint64_t val) const { 229 static AVR target; 237 uint32_t AVR [all...] |
/openbsd-current/gnu/llvm/llvm/lib/Target/AVR/AsmParser/ |
H A D | AVRAsmParser.cpp | 1 //===---- AVRAsmParser.cpp - Parse AVR assembly to MCInst instructions ----===// 9 #include "AVR.h" 40 /// Parses AVR assembly from a stream. 83 unsigned toDREG(unsigned Reg, unsigned From = AVR::sub_lo) { argument 84 MCRegisterClass const *Class = &AVRMCRegisterClasses[AVR::DREGSRegClassID]; 109 /// An parsed AVR assembly operand. 355 // GCC supports case insensitive register names. Some of the AVR registers 359 if (RegNum == AVR::NoRegister) { 362 if (RegNum == AVR::NoRegister) { 372 if (RegNum == AVR [all...] |
/openbsd-current/gnu/llvm/clang/lib/Driver/ToolChains/ |
H A D | AVR.h | 1 //===--- AVR.h - AVR Tool and ToolChain Implementations ---------*- C++ -*-===// 49 namespace AVR { namespace in namespace:clang::driver::tools 53 : Tool("AVR::Linker", "avr-ld", TC), Triple(Triple) {} 65 } // end namespace AVR
|