MLIR  20.0.0git
Macros | Functions
ArmRunnerUtils.cpp File Reference
#include "llvm/Support/MathExtras.h"
#include <iostream>
#include <stdint.h>
#include <string_view>

Go to the source code of this file.

Macros

#define MLIR_ARMRUNNERUTILS_EXPORTED   __attribute__((visibility("default")))
 
#define PR_SVE_SET_VL   50
 
#define PR_SME_SET_VL   63
 
#define PR_VL_LEN_MASK   0xffff
 

Functions

static void setArmVectorLength (std::string_view helper_name, int option, uint32_t bits)
 
void MLIR_ARMRUNNERUTILS_EXPORTED setArmVLBits (uint32_t bits)
 Sets the SVE vector length (in bits) to bits. More...
 
void MLIR_ARMRUNNERUTILS_EXPORTED setArmSVLBits (uint32_t bits)
 Sets the SME streaming vector length (in bits) to bits. More...
 

Macro Definition Documentation

◆ MLIR_ARMRUNNERUTILS_EXPORTED

#define MLIR_ARMRUNNERUTILS_EXPORTED   __attribute__((visibility("default")))

Definition at line 17 of file ArmRunnerUtils.cpp.

◆ PR_SME_SET_VL

#define PR_SME_SET_VL   63

Definition at line 35 of file ArmRunnerUtils.cpp.

◆ PR_SVE_SET_VL

#define PR_SVE_SET_VL   50

Definition at line 31 of file ArmRunnerUtils.cpp.

◆ PR_VL_LEN_MASK

#define PR_VL_LEN_MASK   0xffff

Definition at line 39 of file ArmRunnerUtils.cpp.

Function Documentation

◆ setArmSVLBits()

void MLIR_ARMRUNNERUTILS_EXPORTED setArmSVLBits ( uint32_t  bits)

Sets the SME streaming vector length (in bits) to bits.

Definition at line 66 of file ArmRunnerUtils.cpp.

References PR_SME_SET_VL, and setArmVectorLength().

◆ setArmVectorLength()

static void setArmVectorLength ( std::string_view  helper_name,
int  option,
uint32_t  bits 
)
static

Definition at line 41 of file ArmRunnerUtils.cpp.

References PR_VL_LEN_MASK.

Referenced by setArmSVLBits(), and setArmVLBits().

◆ setArmVLBits()

void MLIR_ARMRUNNERUTILS_EXPORTED setArmVLBits ( uint32_t  bits)

Sets the SVE vector length (in bits) to bits.

Definition at line 61 of file ArmRunnerUtils.cpp.

References PR_SVE_SET_VL, and setArmVectorLength().