LLVM: include/llvm/CodeGen/CodeGenTargetMachineImpl.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_CODEGEN_CODEGENTARGETMACHINEIMPL_H

14#define LLVM_CODEGEN_CODEGENTARGETMACHINEIMPL_H

17

18namespace llvm {

19

20

21

22

23

25protected:

30

32

33

35

36public:

37

38

39

40

42

43

44

46

47

48

49

50

51 bool

54 bool DisableVerify = true,

56

57

58

59

60

63 bool DisableVerify = true) override;

64

65

66

70

74};

75

76

77

78

79

83 if (CM) {

84

89 return *CM;

90 }

92}

93

94}

95

96#endif

static MCStreamer * createMCStreamer(const Triple &T, MCContext &Context, std::unique_ptr< MCAsmBackend > &&MAB, std::unique_ptr< MCObjectWriter > &&OW, std::unique_ptr< MCCodeEmitter > &&Emitter)

CodeGenTargetMachineImpl(const Target &T, StringRef DataLayoutString, const Triple &TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOptLevel OL)

virtual void reset()

Reset internal state.

Definition CodeGenTargetMachineImpl.h:34

Tagged union holding either a T or a Error.

Context object for machine code objects.

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

TargetMachine(const Target &T, StringRef DataLayoutString, const Triple &TargetTriple, StringRef CPU, StringRef FS, const TargetOptions &Options)

Target-Independent Code Generator Pass Configuration Options.

This pass provides access to the codegen interfaces that are needed for IR-level transformations.

Target - Wrapper for Target specific information.

Triple - Helper class for working with autoconf configuration names.

PassManagerBase - An abstract interface to allow code to add passes to a pass manager without having ...

An abstract base class for streams implementations that also support a pwrite operation.

This is an optimization pass for GlobalISel generic memory operations.

CodeModel::Model getEffectiveCodeModel(std::optional< CodeModel::Model > CM, CodeModel::Model Default)

Helper method for getting the code model, returning Default if CM does not have a value.

Definition CodeGenTargetMachineImpl.h:81

CodeGenFileType

These enums are meant to be passed into addPassesToEmitFile to indicate what type of file to emit,...

CodeGenOptLevel

Code generation optimization level.

@ Default

The result values are uniform if and only if all operands are uniform.

LLVM_ABI void reportFatalUsageError(Error Err)

Report a fatal error that does not indicate a bug in LLVM.