LLVM 24.0.0git
llvm::VecDescData Struct Reference

#include "llvm/Analysis/TargetLibraryInfo.h"

Public Member Functions

constexpr VecDescData ()
constexpr VecDescData (ElementCount VectorizationFactor, bool Masked, std::optional< CallingConv::ID > Conv)

Public Attributes

ElementCount VectorizationFactor
bool Masked = false
unsigned CC = 0
 Encoded calling convention: 0 means absent (std::nullopt), otherwise stores CallingConv::ID + 1 so an explicit C (0) remains representable.

Detailed Description

Definition at line 30 of file TargetLibraryInfo.h.

Constructor & Destructor Documentation

◆ VecDescData() [1/2]

llvm::VecDescData::VecDescData ( )
inlineconstexpr

Definition at line 40 of file TargetLibraryInfo.h.

◆ VecDescData() [2/2]

llvm::VecDescData::VecDescData ( ElementCount VectorizationFactor,
bool Masked,
std::optional< CallingConv::ID > Conv )
inlineconstexpr

Definition at line 41 of file TargetLibraryInfo.h.

References CC, Masked, and VectorizationFactor.

Member Data Documentation

◆ CC

unsigned llvm::VecDescData::CC = 0

Encoded calling convention: 0 means absent (std::nullopt), otherwise stores CallingConv::ID + 1 so an explicit C (0) remains representable.

TODO: Since C++20 standard becomes default in LLVM we can return back to use std::optional<CallingConv::ID> instead of unsigned and value_or() in default constructor.

Definition at line 38 of file TargetLibraryInfo.h.

Referenced by VecDescData().

◆ Masked

bool llvm::VecDescData::Masked = false

Definition at line 32 of file TargetLibraryInfo.h.

Referenced by VecDescData().

◆ VectorizationFactor

ElementCount llvm::VecDescData::VectorizationFactor

Definition at line 31 of file TargetLibraryInfo.h.

Referenced by VecDescData().


The documentation for this struct was generated from the following file: