Validate the parameter counts of a newly created target extension type.

Synopsis

Declared in <llvm/IR/DerivedTypes.h>

static
Expected<TargetExtType*>
checkParams(TargetExtType* TTy);

Description

Returns the type itself if the expected number of type and integer parameters match, or an appropriate Error if not.

Return Value

TTy on success, or an Error if its parameters are invalid.

Parameters

Name

Description

TTy

Target extension type to validate.

Created with MrDocs