mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Mark some Type and EVT methods as LLVM_READONLY.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198115 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -880,19 +880,19 @@ namespace llvm {
|
|||||||
static EVT getExtendedIntegerVT(LLVMContext &C, unsigned BitWidth);
|
static EVT getExtendedIntegerVT(LLVMContext &C, unsigned BitWidth);
|
||||||
static EVT getExtendedVectorVT(LLVMContext &C, EVT VT,
|
static EVT getExtendedVectorVT(LLVMContext &C, EVT VT,
|
||||||
unsigned NumElements);
|
unsigned NumElements);
|
||||||
bool isExtendedFloatingPoint() const;
|
bool isExtendedFloatingPoint() const LLVM_READONLY;
|
||||||
bool isExtendedInteger() const;
|
bool isExtendedInteger() const LLVM_READONLY;
|
||||||
bool isExtendedVector() const;
|
bool isExtendedVector() const LLVM_READONLY;
|
||||||
bool isExtended16BitVector() const;
|
bool isExtended16BitVector() const LLVM_READONLY;
|
||||||
bool isExtended32BitVector() const;
|
bool isExtended32BitVector() const LLVM_READONLY;
|
||||||
bool isExtended64BitVector() const;
|
bool isExtended64BitVector() const LLVM_READONLY;
|
||||||
bool isExtended128BitVector() const;
|
bool isExtended128BitVector() const LLVM_READONLY;
|
||||||
bool isExtended256BitVector() const;
|
bool isExtended256BitVector() const LLVM_READONLY;
|
||||||
bool isExtended512BitVector() const;
|
bool isExtended512BitVector() const LLVM_READONLY;
|
||||||
bool isExtended1024BitVector() const;
|
bool isExtended1024BitVector() const LLVM_READONLY;
|
||||||
EVT getExtendedVectorElementType() const;
|
EVT getExtendedVectorElementType() const;
|
||||||
unsigned getExtendedVectorNumElements() const;
|
unsigned getExtendedVectorNumElements() const LLVM_READONLY;
|
||||||
unsigned getExtendedSizeInBits() const;
|
unsigned getExtendedSizeInBits() const LLVM_READONLY;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
@ -290,12 +290,12 @@ public:
|
|||||||
/// instance of the type is stored to memory. The DataLayout class provides
|
/// instance of the type is stored to memory. The DataLayout class provides
|
||||||
/// additional query functions to provide this information.
|
/// additional query functions to provide this information.
|
||||||
///
|
///
|
||||||
unsigned getPrimitiveSizeInBits() const;
|
unsigned getPrimitiveSizeInBits() const LLVM_READONLY;
|
||||||
|
|
||||||
/// getScalarSizeInBits - If this is a vector type, return the
|
/// getScalarSizeInBits - If this is a vector type, return the
|
||||||
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
|
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
|
||||||
/// getPrimitiveSizeInBits value for this type.
|
/// getPrimitiveSizeInBits value for this type.
|
||||||
unsigned getScalarSizeInBits();
|
unsigned getScalarSizeInBits() const LLVM_READONLY;
|
||||||
|
|
||||||
/// getFPMantissaWidth - Return the width of the mantissa of this type. This
|
/// getFPMantissaWidth - Return the width of the mantissa of this type. This
|
||||||
/// is only valid on floating point types. If the FP type does not
|
/// is only valid on floating point types. If the FP type does not
|
||||||
@ -304,8 +304,8 @@ public:
|
|||||||
|
|
||||||
/// getScalarType - If this is a vector type, return the element type,
|
/// getScalarType - If this is a vector type, return the element type,
|
||||||
/// otherwise return 'this'.
|
/// otherwise return 'this'.
|
||||||
const Type *getScalarType() const;
|
const Type *getScalarType() const LLVM_READONLY;
|
||||||
Type *getScalarType();
|
Type *getScalarType() LLVM_READONLY;
|
||||||
|
|
||||||
//===--------------------------------------------------------------------===//
|
//===--------------------------------------------------------------------===//
|
||||||
// Type Iteration support.
|
// Type Iteration support.
|
||||||
|
@ -132,7 +132,7 @@ unsigned Type::getPrimitiveSizeInBits() const {
|
|||||||
/// getScalarSizeInBits - If this is a vector type, return the
|
/// getScalarSizeInBits - If this is a vector type, return the
|
||||||
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
|
/// getPrimitiveSizeInBits value for the element type. Otherwise return the
|
||||||
/// getPrimitiveSizeInBits value for this type.
|
/// getPrimitiveSizeInBits value for this type.
|
||||||
unsigned Type::getScalarSizeInBits() {
|
unsigned Type::getScalarSizeInBits() const {
|
||||||
return getScalarType()->getPrimitiveSizeInBits();
|
return getScalarType()->getPrimitiveSizeInBits();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user