LLVM: lib/CodeGen/TargetOptionsImpl.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

20using namespace llvm;

21

22

23

26

27 Attribute FPAttr = F.getFnAttribute("frame-pointer");

29 return false;

31 if (FP == "all")

32 return true;

33 if (FP == "non-leaf" || FP == "non-leaf-no-reserve")

35 if (FP == "none" || FP == "reserved")

36 return false;

38}

39

42 Attribute FPAttr = F.getFnAttribute("frame-pointer");

44 return false;

45

47 .Cases({"all", "non-leaf", "reserved"}, true)

49 .Case("none", false);

50}

51

52

53

57

58

59

60

61

62

This file implements the StringSwitch template, which mimics a switch() statement whose cases are str...

Functions, function parameters, and return types can have attributes to indicate how they should be t...

LLVM_ABI StringRef getValueAsString() const

Return the attribute's value as a string.

bool isValid() const

Return true if the attribute is any kind of attribute.

bool hasCalls() const

Return true if the current function has any function calls.

MachineFrameInfo & getFrameInfo()

getFrameInfo - Return the frame info object for the current function.

Function & getFunction()

Return the LLVM function that this machine code represents.

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

A switch()-like statement whose cases are string literals.

StringSwitch & Case(StringLiteral S, T Value)

StringSwitch & Cases(std::initializer_list< StringLiteral > CaseStrings, T Value)

LLVM_ABI bool HonorSignDependentRoundingFPMath() const

HonorSignDependentRoundingFPMath - Return true if the codegen must assume that the rounding mode of t...

Definition TargetOptionsImpl.cpp:54

unsigned SupportsDebugEntryValues

Set if the target supports the debug entry values by default.

unsigned HonorSignDependentRoundingFPMathOption

HonorSignDependentRoundingFPMath - This returns true when the -enable-sign-dependent-rounding-fp-math...

DebuggerKind DebuggerTuning

Which debugger to tune for.

LLVM_ABI bool FramePointerIsReserved(const MachineFunction &MF) const

FramePointerIsReserved - This returns true if the frame pointer must always either point to a new fra...

Definition TargetOptionsImpl.cpp:40

LLVM_ABI bool DisableFramePointerElim(const MachineFunction &MF) const

DisableFramePointerElim - This returns true if frame pointer elimination optimization should be disab...

Definition TargetOptionsImpl.cpp:24

unsigned EnableDebugEntryValues

When set to true, the EnableDebugEntryValues option forces production of debug entry values even if t...

LLVM_ABI bool ShouldEmitDebugEntryValues() const

NOTE: There are targets that still do not support the debug entry values production.

Definition TargetOptionsImpl.cpp:63

#define llvm_unreachable(msg)

Marks that the current location is not supposed to be reachable.

This is an optimization pass for GlobalISel generic memory operations.

@ SCE

Tune debug info for SCE targets (e.g. PS4).