This is an archive of the discontinued LLVM Phabricator instance.

[clang][ConstantEmitter] have tryEmitPrivate try ConstExprEmitter fast-path first
AbandonedPublic

Authored by nickdesaulniers on May 26 2023, 10:42 AM.

Details

Reviewers
efriedma
rsmith
Summary

As suggested by @efriedma in:
https://reviews.llvm.org/D76096#4370369

Some minor code style fixes as well in
ConstantEmitter::tryEmitPrivateForVarInit.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 10:42 AM
nickdesaulniers requested review of this revision.May 26 2023, 10:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 26 2023, 10:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
  • one more style update

Did you intentionally skip moving the ConstExprEmitter call in tryEmitPrivateForVarInit? (VarDecl::evaluateValue calls the constant evaluator.)

Did you intentionally skip moving the ConstExprEmitter call in tryEmitPrivateForVarInit? (VarDecl::evaluateValue calls the constant evaluator.)

Yes, I'll do that in a follow up patch as it results in quite a few test failures that I'm looking into now. Triple check my messages on LLVM Discord. ;)