enum ConstantEmissionKind

Description

Can we constant-emit a load of a reference to a variable of the given type? This is different from predicates like Decl::mightBeUsableInConstantExpressions because we do want it to apply in situations that don't necessarily satisfy the language's rules for this (e.g. C++'s ODR-use rules). For example, we want to able to do this with const float variables even if those variables aren't marked 'constexpr'.

Declared at: clang/lib/CodeGen/CGExpr.cpp:1491

Enumerators

NameValueComment
CEK_None0
CEK_AsReferenceOnly1
CEK_AsValueOrReference2
CEK_AsValueOnly3