Return a target extension type having the specified name and optional type and integer parameters, or an appropriate Error if it fails the parameters check.

Synopsis

Declared in <llvm/IR/DerivedTypes.h>

static
Expected<TargetExtType*>
getOrError(
    LLVMContext& Context,
    StringRef Name,
    ArrayRef<Type*> Types = {},
    ArrayRef<unsigned int> Ints = {});

Return Value

The TargetExtType on success, or an Error if parameters are invalid.

Parameters

Name

Description

Context

LLVM context in which to unique the type.

Name

Target‐specific type name.

Types

Optional type parameters.

Ints

Optional integer parameters.

Created with MrDocs