clang 24.0.0git
RISCV.cpp File Reference
#include "ABIInfoImpl.h"
#include "TargetInfo.h"
#include "llvm/IR/IntrinsicsRISCV.h"
#include "llvm/TargetParser/RISCVTargetParser.h"

Go to the source code of this file.

Macros

#define CC_VLS_CASE(ABI_VLEN)

Functions

static unsigned getRVVFixedLengthDataMinElts (VectorKind VK, unsigned EltSizeInBits)
 Minimum element count of the scalable vector an RVV fixed-length data vector is coerced to, i.e.
static unsigned getRVVFixedLengthMaskMinElts (VectorKind VK)
 Minimum element count of the scalable vector a vbool<R>_t mask is coerced to, i.e.

Macro Definition Documentation

◆ CC_VLS_CASE

#define CC_VLS_CASE ( ABI_VLEN)
Value:
case CallingConv::CC_RISCVVLSCall_##ABI_VLEN: \
ABIVLen = ABI_VLEN; \
break;

Function Documentation

◆ getRVVFixedLengthDataMinElts()

unsigned getRVVFixedLengthDataMinElts ( VectorKind VK,
unsigned EltSizeInBits )
static

Minimum element count of the scalable vector an RVV fixed-length data vector is coerced to, i.e.

the N in <vscale x N x T>. The LMUL comes from the vector kind - the type the typedef was written against - rather than from VLEN and the element count.

Definition at line 419 of file RISCV.cpp.

References clang::getRVVFixedLengthDataLMulLog2().

◆ getRVVFixedLengthMaskMinElts()

unsigned getRVVFixedLengthMaskMinElts ( VectorKind VK)
static

Minimum element count of the scalable vector a vbool<R>_t mask is coerced to, i.e.

the N in <vscale x N x i1>.

Definition at line 433 of file RISCV.cpp.

References clang::getRVVFixedLengthMaskRatioLog2().