Return the effective code model, or Default when CM has no value.
Declared in <llvm/CodeGen/CodeGenTargetMachineImpl.h>
CodeModel::Model
getEffectiveCodeModel(
std::optional<CodeModel::Model> CM,
CodeModel::Model Default);
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.
The selected code model.
| Name | Description |
|---|---|
| CM | Optional requested code model. |
| Default | Code model used when CM has no value. |