LLVM: lib/Target/VE/VESubtarget.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

16

17using namespace llvm;

18

19#define DEBUG_TYPE "ve-subtarget"

20

21#define GET_SUBTARGETINFO_TARGET_DESC

22#define GET_SUBTARGETINFO_CTOR

23#include "VEGenSubtargetInfo.inc"

24

25void VESubtarget::anchor() {}

26

29

30 EnableVPU = false;

31

32

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

34 if (CPUName.empty())

35 CPUName = "generic";

36

37

39

40 return *this;

41}

42

47 FrameLowering(*this) {

48 TSInfo = std::make_unique();

49}

50

52

54 return TSInfo.get();

55}

56

58

59

61

64

65 return FrameSize;

66}

67

Targets can subclass this to parameterize the SelectionDAG lowering and instruction selection process...

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

Align getStackAlign() const

getStackAlignment - This method returns the number of bytes to which the stack pointer must be aligne...

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

Triple - Helper class for working with autoconf configuration names.

uint64_t getAdjustedFrameSize(uint64_t FrameSize) const

Given a actual stack size as determined by FrameInfo, this function returns adjusted framesize which ...

Definition VESubtarget.cpp:57

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

ParseSubtargetFeatures - Parses features string setting specified subtarget options.

bool enableMachineScheduler() const override

Definition VESubtarget.cpp:68

unsigned getRsaSize() const

Get the size of RSA, return address, and frame pointer as described in VEFrameLowering....

const SelectionDAGTargetInfo * getSelectionDAGInfo() const override

Definition VESubtarget.cpp:53

VESubtarget & initializeSubtargetDependencies(StringRef CPU, StringRef FS)

Definition VESubtarget.cpp:27

VESubtarget(const Triple &TT, const std::string &CPU, const std::string &FS, const TargetMachine &TM)

Definition VESubtarget.cpp:43

const VEFrameLowering * getFrameLowering() const override

This is an optimization pass for GlobalISel generic memory operations.

uint64_t alignTo(uint64_t Size, Align A)

Returns a multiple of A needed to store Size bytes.