LLVM: include/llvm/TargetParser/Host.h Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13#ifndef LLVM_TARGETPARSER_HOST_H

14#define LLVM_TARGETPARSER_HOST_H

15

18#include

19

20namespace llvm {

23template <typename ValueTy, typename AllocatorTy> class StringMap;

25

26namespace sys {

27

28

29

30

31

32

33

34

36

37

38

40

41

42

43

44

45

47

48

49

50

51

52

53

54

55

56

58

59

60

62

88}

89}

90

91#endif

ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...

StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...

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

This class implements an extremely fast bulk output stream that can only output to a stream.

Helper functions to extract CPU details from CPUID on x86.

Definition Host.h:75

VendorSignatures

Definition Host.h:76

@ AUTHENTIC_AMD

Definition Host.h:79

@ UNKNOWN

Definition Host.h:77

@ GENUINE_INTEL

Definition Host.h:78

LLVM_ABI VendorSignatures getVendorSignature(unsigned *MaxLeaf=nullptr)

Returns the host CPU's vendor.

LLVM_ABI StringRef getHostCPUNameForSPARC(StringRef ProcCpuinfoContent)

LLVM_ABI StringRef getHostCPUNameForS390x(StringRef ProcCpuinfoContent)

LLVM_ABI StringRef getHostCPUNameForPowerPC(StringRef ProcCpuinfoContent)

Helper functions to extract HostCPUName from /proc/cpuinfo on linux.

LLVM_ABI StringRef getHostCPUNameForBPF()

LLVM_ABI StringRef getHostCPUNameForARM(StringRef ProcCpuinfoContent)

LLVM_ABI StringRef getHostCPUNameForRISCV(StringRef ProcCpuinfoContent)

LLVM_ABI StringMap< bool, MallocAllocator > getHostCPUFeatures()

getHostCPUFeatures - Get the LLVM names for the host CPU features.

LLVM_ABI StringRef getHostCPUName()

getHostCPUName - Get the LLVM name for the host CPU.

LLVM_ABI void printDefaultTargetAndDetectedCPU(raw_ostream &OS)

This is a function compatible with cl::AddExtraVersionPrinter, which adds info about the current targ...

LLVM_ABI std::string getDefaultTargetTriple()

getDefaultTargetTriple() - Return the default target triple the compiler has been configured to produ...

LLVM_ABI std::string getProcessTriple()

getProcessTriple() - Return an appropriate target triple for generating code to be loaded into the cu...

This is an optimization pass for GlobalISel generic memory operations.