Return the effective code model, or Default when CM has no value.

Synopsis

Declared in <llvm/CodeGen/CodeGenTargetMachineImpl.h>

CodeModel::Model
getEffectiveCodeModel(
    std::optional<CodeModel::Model> CM,
    CodeModel::Model Default);

Description

The tiny and kernel models will produce an error, so targets that support them or require more complex codemodel selection logic should implement and call their own getEffectiveCodeModel.

Return Value

The selected code model.

Parameters

Name

Description

CM

Optional requested code model.

Default

Code model used when CM has no value.

Created with MrDocs