Implementation of the target library information.

Synopsis

Declared in <llvm/Analysis/TargetLibraryInfo.h>

class TargetLibraryInfoImpl;

Description

This class constructs tables that hold the target library information and make it available. However, it is somewhat expensive to compute and only depends on the triple. So users typically interact with the TargetLibraryInfo wrapper below.

Member Functions

Name

Description

TargetLibraryInfoImpl [constructor]

Constructors

operator=

Assignment operators

addVectorizableFunctions

Add a set of scalar ‐> vector mappings, queryable via getVectorizedFunction and getScalarizedFunction.

addVectorizableFunctionsFromVecLib

Calls addVectorizableFunctions with a known preset of functions for the given vector library.

disableAllFunctions

Disables all builtins.

getIntSize

Get size of a C‐level int or unsigned int, in bits.

getLibFunc

getLibFunc overloads

getSizeTSize

Returns the size of the size_t type in bits.

getVectorMappingInfo

Return VecDesc info for the vectorized equivalent of F with factor VF.

getVectorizedFunction

Return the name of the equivalent of F, vectorized with factor VF. If no such mapping exists, return the empty string.

getWCharSize

Returns the size of the wchar_t type in bytes. This queries the 'wchar_size' metadata.

getWidestVF

Returns the largest vectorization factor used in the list of vector functions.

isErrnoFunctionCall

Return true if errno is defined as a function call on known environments.

isFunctionVectorizable

isFunctionVectorizable overloads

setAvailable

Forces a function to be marked as available.

setAvailableWithName

Forces a function to be marked as available and provide an alternate name that must be used.

setIntSize

Initialize the C‐level size of an integer.

setShouldExtI32Param

Set to true iff i32 parameters to library functions should have signext or zeroext attributes if they correspond to C‐level int or unsigned int, respectively.

setShouldExtI32Return

Set to true iff i32 results from library functions should have signext or zeroext attributes if they correspond to C‐level int or unsigned int, respectively.

setShouldSignExtI32Param

Set to true iff i32 parameters to library functions should have signext attribute if they correspond to C‐level int or unsigned int.

setShouldSignExtI32Return

Set to true iff i32 results from library functions should have signext attribute if they correspond to C‐level int or unsigned int.

setUnavailable

Forces a function to be marked as unavailable.

Static Member Functions

Name

Description

isCallingConvCCompatible

isCallingConvCCompatible overloads

Friends

Name

Description

llvm::TargetLibraryInfo

Provides information about what library functions are available for the current target.

Non-Member Functions

Name

Description

driver::createTLII

Create a TargetLibraryInfoImpl for a target triple and vector library.

Created with MrDocs