1e4c8c807SAlexei Starovoitov //===-- BPFSubtarget.cpp - BPF Subtarget Information ----------------------===// 2e4c8c807SAlexei Starovoitov // 3e4c8c807SAlexei Starovoitov // The LLVM Compiler Infrastructure 4e4c8c807SAlexei Starovoitov // 5e4c8c807SAlexei Starovoitov // This file is distributed under the University of Illinois Open Source 6e4c8c807SAlexei Starovoitov // License. See LICENSE.TXT for details. 7e4c8c807SAlexei Starovoitov // 8e4c8c807SAlexei Starovoitov //===----------------------------------------------------------------------===// 9e4c8c807SAlexei Starovoitov // 10e4c8c807SAlexei Starovoitov // This file implements the BPF specific subclass of TargetSubtargetInfo. 11e4c8c807SAlexei Starovoitov // 12e4c8c807SAlexei Starovoitov //===----------------------------------------------------------------------===// 13e4c8c807SAlexei Starovoitov 14e4c8c807SAlexei Starovoitov #include "BPFSubtarget.h" 15e4c8c807SAlexei Starovoitov #include "BPF.h" 16e4c8c807SAlexei Starovoitov #include "llvm/Support/TargetRegistry.h" 17e4c8c807SAlexei Starovoitov 18e4c8c807SAlexei Starovoitov using namespace llvm; 19e4c8c807SAlexei Starovoitov 20e4c8c807SAlexei Starovoitov #define DEBUG_TYPE "bpf-subtarget" 21e4c8c807SAlexei Starovoitov 22e4c8c807SAlexei Starovoitov #define GET_SUBTARGETINFO_TARGET_DESC 23e4c8c807SAlexei Starovoitov #define GET_SUBTARGETINFO_CTOR 24e4c8c807SAlexei Starovoitov #include "BPFGenSubtargetInfo.inc" 25e4c8c807SAlexei Starovoitov 26e4c8c807SAlexei Starovoitov void BPFSubtarget::anchor() {} 27e4c8c807SAlexei Starovoitov 28a73f1fdbSDaniel Sanders BPFSubtarget::BPFSubtarget(const Triple &TT, const std::string &CPU, 29e4c8c807SAlexei Starovoitov const std::string &FS, const TargetMachine &TM) 30*50f17235SDaniel Sanders : BPFGenSubtargetInfo(TT, CPU, FS), InstrInfo(), FrameLowering(*this), 31*50f17235SDaniel Sanders TLInfo(TM, *this) {} 32