LLVM 22.0.0git
VectorUtils.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Macros

#define DEBUG_TYPE   "vectorutils"

Functions

template<typename ListT>
static void addToAccessGroupList (ListT &List, MDNode *AccGroups)
 Add all access groups in AccGroups to List.
static ValueconcatenateTwoVectors (IRBuilderBase &Builder, Value *V1, Value *V2)
 A helper function for concatenating vectors.

Variables

static cl::opt< unsignedMaxInterleaveGroupFactor ("max-interleave-group-factor", cl::Hidden, cl::desc("Maximum factor for an interleaved access group (default = 8)"), cl::init(8))
 Maximum factor for an interleaved memory access.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "vectorutils"

Definition at line 31 of file VectorUtils.cpp.

Function Documentation

◆ addToAccessGroupList()

template<typename ListT>
void addToAccessGroupList ( ListT & List,
MDNode * AccGroups )
static

Add all access groups in AccGroups to List.

Definition at line 973 of file VectorUtils.cpp.

References assert(), llvm::cast(), llvm::MDNode::getNumOperands(), llvm::isValidAsAccessGroup(), and llvm::MDNode::operands().

Referenced by llvm::intersectAccessGroups(), and llvm::uniteAccessGroups().

◆ concatenateTwoVectors()

Value * concatenateTwoVectors ( IRBuilderBase & Builder,
Value * V1,
Value * V2 )
static

A helper function for concatenating vectors.

This function concatenates two vectors having the same element type. If the second vector has fewer elements than the first, it is padded with undefs.

Definition at line 1206 of file VectorUtils.cpp.

References assert(), llvm::cast(), llvm::createSequentialMask(), llvm::dyn_cast(), and llvm::Value::getType().

Referenced by llvm::concatenateVectors().

Variable Documentation

◆ MaxInterleaveGroupFactor

cl::opt< unsigned > MaxInterleaveGroupFactor("max-interleave-group-factor", cl::Hidden, cl::desc("Maximum factor for an interleaved access group (default = 8)"), cl::init(8)) ( "max-interleave-group-factor" ,
cl::Hidden ,
cl::desc("Maximum factor for an interleaved access group (default = 8)") ,
cl::init(8)  )
static

Maximum factor for an interleaved memory access.