LLVM: lib/Target/Lanai/LanaiSubtarget.cpp Source File (original) (raw)

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

14

15#define DEBUG_TYPE "lanai-subtarget"

16

17#define GET_SUBTARGETINFO_TARGET_DESC

18#define GET_SUBTARGETINFO_CTOR

19#include "LanaiGenSubtargetInfo.inc"

20

21using namespace llvm;

22

24 std::string CPUName = std::string(CPU);

25 if (CPUName.empty())

26 CPUName = "generic";

27

29}

30

36

44 FrameLowering(*this), TLInfo(TM, *this) {}

LanaiSubtarget(const Triple &TargetTriple, StringRef Cpu, StringRef FeatureString, const TargetMachine &TM, const TargetOptions &Options, CodeModel::Model CodeModel, CodeGenOptLevel OptLevel)

Definition LanaiSubtarget.cpp:37

void ParseSubtargetFeatures(StringRef CPU, StringRef TuneCPU, StringRef FS)

void initSubtargetFeatures(StringRef CPU, StringRef FS)

Definition LanaiSubtarget.cpp:23

LanaiSubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)

Definition LanaiSubtarget.cpp:31

StringRef - Represent a constant reference to a string, i.e.

Primary interface to the complete machine description for the target machine.

Triple - Helper class for working with autoconf configuration names.

This is an optimization pass for GlobalISel generic memory operations.

CodeGenOptLevel

Code generation optimization level.