LLVM: lib/CodeGenTypes/LowLevelType.cpp Source File (original) (raw)

1

2

3

4

5

6

7

8

9

10

11

12

13

14

17using namespace llvm;

18

22 init(false, asVector, !asVector,

24 0);

26

27

28 init(false, false, true,

30 } else {

31 IsScalar = false;

32 IsPointer = false;

33 IsVector = false;

34 RawData = 0;

35 }

36}

37

40 OS << "<";

47 } else

48 OS << "LLT_invalid";

49}

50

51#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)

56#endif

assert(UImm &&(UImm !=~static_cast< T >(0)) &&"Invalid immediate!")

#define LLVM_DUMP_METHOD

Mark debug helper function definitions like dump() that should not be stripped from debug builds.

Implement a low-level type suitable for MachineInstr level instruction selection.

static constexpr ElementCount getFixed(ScalarTy MinVal)

LLVM_ABI void print(raw_ostream &OS) const

Definition LowLevelType.cpp:38

constexpr unsigned getScalarSizeInBits() const

constexpr bool isScalar() const

constexpr bool isValid() const

constexpr bool isVector() const

constexpr bool isPointer() const

constexpr LLT getElementType() const

Returns the vector's element type. Only valid for vector types.

constexpr ElementCount getElementCount() const

constexpr unsigned getAddressSpace() const

LLVM_DUMP_METHOD void dump() const

Definition LowLevelType.cpp:52

unsigned getVectorMinNumElements() const

Given a vector type, return the minimum number of elements it contains.

bool isScalableTargetExtVT() const

Return true if this is a custom target type that has a scalable size.

bool isVector() const

Return true if this is a vector value type.

bool isScalableVector() const

Return true if this is a vector value type where the runtime length is machine dependent.

TypeSize getSizeInBits() const

Returns the size of the specified MVT in bits.

ElementCount getVectorElementCount() const

MVT getVectorElementType() const

bool isValid() const

Return true if this is a valid simple valuetype.

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

This is an optimization pass for GlobalISel generic memory operations.

LLVM_ABI raw_ostream & dbgs()

dbgs() - This returns a reference to a raw_ostream for debugging messages.