[PATCH] D137399: [clang][Interp] Emit negated integers directly as constants

2022-11-23 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder abandoned this revision. tbaeder added a comment. This was just to make the byte code a little more readable, but given the amount of pending patches I already have, I'll abandon this and maybe revisit at a later point, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D137399: [clang][Interp] Emit negated integers directly as constants

2022-11-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. This is missing test coverage (possibly around integer promotion behavior as well). Comment at: clang/lib/AST/Interp/ByteCodeExprGen.cpp:1525 +return true; + APSInt V = APSInt(IL->getValue(), /*IsUnsigned=*/false); + return this

[PATCH] D137399: [clang][Interp] Emit negated integers directly as constants

2022-11-04 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder created this revision. tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik. Herald added a project: All. tbaeder requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo https://revi