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