Get allocation size of an alloca as a runtime Value* (handles both static and dynamic allocas and vscale factor).

Synopsis

Declared in <llvm/IR/IRBuilder.h>

Value*
CreateAllocationSize(
    Type* DestTy,
    AllocaInst* AI);

Return Value

The allocation size of an alloca as a runtime Value* (handles both static and dynamic allocas and vscale factor).

Parameters

Name

Description

DestTy

Destination type of the cast.

AI

Alloca instruction or APInt constant source.

Created with MrDocs