Project Alice
Loading...
Searching...
No Matches
Collaboration diagram for Constants:

Modules

 Scalar constants
 
 Composite Constants
 
 Constant Expressions
 
 Global Values
 
 Global Variables
 
 Global Aliases
 
 Function values
 

Functions

LLVMValueRef LLVMConstNull (LLVMTypeRef Ty)
 
LLVMValueRef LLVMConstAllOnes (LLVMTypeRef Ty)
 
LLVMValueRef LLVMGetUndef (LLVMTypeRef Ty)
 
LLVMValueRef LLVMGetPoison (LLVMTypeRef Ty)
 
LLVMBool LLVMIsNull (LLVMValueRef Val)
 
LLVMValueRef LLVMConstPointerNull (LLVMTypeRef Ty)
 

Detailed Description

This section contains APIs for interacting with LLVMValueRef that correspond to llvm::Constant instances.

These functions will work for any LLVMValueRef in the llvm::Constant class hierarchy.

Function Documentation

◆ LLVMConstAllOnes()

LLVMValueRef LLVMConstAllOnes ( LLVMTypeRef  Ty)

Obtain a constant value referring to the instance of a type consisting of all ones.

This is only valid for integer types.

See also
llvm::Constant::getAllOnesValue()

◆ LLVMConstNull()

LLVMValueRef LLVMConstNull ( LLVMTypeRef  Ty)

Obtain a constant value referring to the null instance of a type.

See also
llvm::Constant::getNullValue()

◆ LLVMConstPointerNull()

LLVMValueRef LLVMConstPointerNull ( LLVMTypeRef  Ty)

Obtain a constant that is a constant pointer pointing to NULL for a specified type.

◆ LLVMGetPoison()

LLVMValueRef LLVMGetPoison ( LLVMTypeRef  Ty)

Obtain a constant value referring to a poison value of a type.

See also
llvm::PoisonValue::get()

◆ LLVMGetUndef()

LLVMValueRef LLVMGetUndef ( LLVMTypeRef  Ty)

Obtain a constant value referring to an undefined value of a type.

See also
llvm::UndefValue::get()

◆ LLVMIsNull()

LLVMBool LLVMIsNull ( LLVMValueRef  Val)

Determine whether a value instance is null.

See also
llvm::Constant::isNullValue()