class CoroIdAsyncInst

Declaration

class CoroIdAsyncInst : public AnyCoroIdInst { /* full declaration omitted */ };

Description

This represents the llvm.coro.id.async instruction.

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:277

Inherits from: AnyCoroIdInst

Member Variables

Inherited from CallBase:

protected Attrs
protected FTy
protected static CalledOperandOpEndIdx = -1

Inherited from Value:

protected SubclassOptionalData
protected NumUserOperands
protected IsUsedByMD
protected HasName
protected HasMetadata
protected HasHungOffUses
protected HasDescriptor
public static MaxAlignmentExponent = 32
public static MaximumAlignment = 1ULL << MaxAlignmentExponent

Method Overview

Inherited from AnyCoroIdInst:

Inherited from IntrinsicInst:

Inherited from CallInst:

Inherited from CallBase:

Inherited from Instruction:

Inherited from User:

Inherited from Value:

Methods

void checkWellFormed() const

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:281

static bool classof(const llvm::IntrinsicInst* I)

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:317

Parameters

const llvm::IntrinsicInst* I

static bool classof(const llvm::Value* V)

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:322

Parameters

const llvm::Value* V

llvm::GlobalVariable* getAsyncFunctionPointer()
    const

Description

Return the async function pointer address. This should be the address of a async function pointer struct for the current async function. struct async_function_pointer { uint32_t context_size; uint32_t relative_async_function_pointer; };

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:311

llvm::Value* getStorage() const

Description

The async context parameter.

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:296

llvm::Align getStorageAlignment() const

Description

The alignment of the initial async function context.

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:291

unsigned int getStorageArgumentIndex() const

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:300

uint64_t getStorageSize() const

Description

The initial async function context size. The fields of which are reserved for use by the frontend. The frame will be allocated as a tail of this context.

Declared at: llvm/lib/Transforms/Coroutines/CoroInstr.h:286