djasper added a comment.
So sorry. Seems I forgot to hit "Submit" :(.
If you don't like the ".first" and ".second" of the pair, you could introduce a
struct for it and overload operator<. Might actually be more readable.
> WhitespaceManager.cpp:73
> + Tok.NestingLevel,
>
bmharper added a comment.
ping!
https://reviews.llvm.org/D21279
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
ahatanak added inline comments.
> rsmith wrote in SemaTemplateInstantiateDecl.cpp:4849
> Do we need to do this for conversion function names too? (Eg, `operator
> C1*`)
I added a definition of "operator C1*" and called it in C1::foo1. I didn't
see any crashes or asserts.
Calls to a
dberris added a comment.
In https://reviews.llvm.org/D24799#561106, @rSerge wrote:
> My mistake was that initially I only enumerated the unsupported targets from
> llvm\include\llvm\ADT\Triple.h . Now I've added also the cases from
> llvm\lib\Support\Triple.cpp .
> `XFAIL` requires a list of
majnemer added inline comments.
> CGBuiltin.cpp:2640-2647
> +// Many of MSVC builtins are on both x64 and ARM; to avoid repeating code, we
> +// handle them here.
> +namespace MSVC {
> + enum {
> +_BitScanForward,
> +_BitScanReverse
> + };
This should be in an anonymous namespace.
agutowski created this revision.
agutowski added reviewers: rnk, hans, thakis, majnemer.
agutowski added a subscriber: cfe-commits.
Herald added a subscriber: aemerson.
_BitScan intrinsics (and some others, for example _Interlocked and _bittest)
are supposed to work on both ARM and x86. This is
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL191945.
https://reviews.llvm.org/D1752
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL191944.
https://reviews.llvm.org/D1753
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL191808.
https://reviews.llvm.org/D1801
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
hfinkel abandoned this revision.
hfinkel added a comment.
Abandoned in favor of
https://reviews.llvm.org/D25225/https://reviews.llvm.org/D25262.
https://reviews.llvm.org/D19678
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL192028.
https://reviews.llvm.org/D1816
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL192029.
https://reviews.llvm.org/D1817
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL192141.
https://reviews.llvm.org/D1818
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL192410.
https://reviews.llvm.org/D1854
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Obsoleted by https://reviews.llvm.org/D1885.
https://reviews.llvm.org/D1869
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
erichkeane marked 16 inline comments as done.
erichkeane added a comment.
Commenting to save my comments (don't seem to survive a refresh). Still
working on non-function mangling.
> rnk wrote in ItaniumMangle.cpp:1203
> What mangling should happen for operator overloads and all other kinds
Author: jlebar
Date: Tue Oct 4 19:27:38 2016
New Revision: 283280
URL: http://llvm.org/viewvc/llvm-project?rev=283280=rev
Log:
[CUDA] Add missing ':' to noexcept.cu test.
Modified:
cfe/trunk/test/CodeGenCUDA/nothrow.cu
Modified: cfe/trunk/test/CodeGenCUDA/nothrow.cu
URL:
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL196189.
https://reviews.llvm.org/D2302
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: jlebar
Date: Tue Oct 4 18:41:49 2016
New Revision: 283272
URL: http://llvm.org/viewvc/llvm-project?rev=283272=rev
Log:
[CUDA] Mark device functions as nounwind.
Summary:
This prevents clang from emitting 'invoke's and catch statements.
Things previously mostly worked thanks to
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283271: [CUDA] Destroy deferred diagnostics before
destroying the ASTContext's… (authored by jlebar).
Changed prior to commit:
https://reviews.llvm.org/D25260?vs=73578=73580#toc
Repository:
rL LLVM
GorNishanov added inline comments.
> majnemer wrote in CGCoroutine.cpp:68-69
> I think that's just `CGM.getContext().getTargetInfo().getSuitableAlign() /
> CGM.getContext().getTargetInfo().getCharWidth()`
Yay! One less FIXME.
I think I will make it to match __STDCPP_DEFAULT_NEW_ALIGNMENT__:
Author: jlebar
Date: Tue Oct 4 18:41:45 2016
New Revision: 283271
URL: http://llvm.org/viewvc/llvm-project?rev=283271=rev
Log:
[CUDA] Destroy deferred diagnostics before destroying the ASTContext's
PartialDiagnostic allocator.
Summary:
This will let us (in a separate patch) allocate deferred
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL196191.
https://reviews.llvm.org/D2304
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
jlebar updated this revision to Diff 73579.
jlebar marked an inline comment as done.
jlebar added a comment.
Update tests.
https://reviews.llvm.org/D25166
Files:
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGException.cpp
clang/test/CodeGenCUDA/convergent.cu
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
https://reviews.llvm.org/D25260
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
rnk accepted this revision.
rnk added a reviewer: rnk.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
> nothrow.cu:16
> +// DEVICE: define void @_Z3foov() [[DEVICE_ATTR:#[0-9]+]]
> +__device__ void foo() { f(); }
> +
I would check for `call void @_Z1fv` here, and
majnemer added inline comments.
> CGCoroutine.cpp:68-69
> +void CodeGenFunction::EmitCoroutineBody(const CoroutineBodyStmt ) {
> + auto *NullPtr = llvm::ConstantPointerNull::get(Builder.getInt8PtrTy());
> + // FIXME: Instead of 0, pass an equivalent of alignas(maxalign_t).
> + auto *CoroId =
jlebar updated this revision to Diff 73578.
jlebar added a comment.
Update comment.
https://reviews.llvm.org/D25260
Files:
clang/include/clang/AST/ASTContext.h
clang/lib/CodeGen/CodeGenModule.cpp
Index: clang/lib/CodeGen/CodeGenModule.cpp
jlebar updated this revision to Diff 73577.
jlebar added a comment.
Move everything into codegen.
https://reviews.llvm.org/D25166
Files:
clang/lib/CodeGen/CGCall.cpp
clang/lib/CodeGen/CGException.cpp
clang/test/CodeGenCUDA/convergent.cu
clang/test/CodeGenCUDA/device-var-init.cu
rnk added inline comments.
> CodeGenModule.cpp:512-513
>}
> + // Clear the deferred diags so they don't outlive the ASTContext from
> whence
> + // they're allocated.
> + DeferredDiags.clear();
The ASTContext outlives CodeGenModule, but the diagnostic allocator in the
ASTContext does
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL199208.
https://reviews.llvm.org/D2526
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Eugene.Zelenko added a comment.
Looks like patch was not committed.
https://reviews.llvm.org/D22944
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Eugene.Zelenko added a comment.
Looks like patch was not committed.
https://reviews.llvm.org/D22945
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
jlebar updated this revision to Diff 73576.
jlebar marked an inline comment as done.
jlebar added a comment.
Rebase atop https://reviews.llvm.org/D25260, which obviates the need for this
ugly PD allocation dance.
https://reviews.llvm.org/D25139
Files:
jlebar added inline comments.
> rnk wrote in Sema.h:9258
> The ASTContext should outlive IRgen, since the AST is allocated in its arena.
> Is there a separate diagnostic memory pool that I don't know about?
You're right, this is a silly bug. Fixed in a separate patch,
Eugene.Zelenko added a comment.
Looks like patch was not committed.
https://reviews.llvm.org/D23493
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Eugene.Zelenko added a comment.
Looks like patch was not committed.
Repository:
rL LLVM
https://reviews.llvm.org/D23602
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
GorNishanov created this revision.
GorNishanov added reviewers: rsmith, EricWF.
GorNishanov added a subscriber: cfe-commits.
Herald added a subscriber: mehdi_amini.
1. Sema: Add allocation / deallocation substatements.
2. Sema: Add labels to final-suspend and deallocation substatements.
3. Sema:
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283264: Separate builtins for x84-64 and i386; implement
__mulh and __umulh (authored by agutowski).
Changed prior to commit:
https://reviews.llvm.org/D24598?vs=73521=73570#toc
Repository:
rL LLVM
Author: agutowski
Date: Tue Oct 4 17:29:49 2016
New Revision: 283264
URL: http://llvm.org/viewvc/llvm-project?rev=283264=rev
Log:
Separate builtins for x84-64 and i386; implement __mulh and __umulh
Summary: We need x86-64-specific builtins if we want to implement some of the
MS intrinsics -
rjmccall added a comment.
LGTM, but I'm not a code owner here.
https://reviews.llvm.org/D24012
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
kkwli0 added a comment.
Should we issue a warning message in this case?
https://reviews.llvm.org/D24615
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
EricWF added a comment.
r283260.
https://reviews.llvm.org/D25251
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
rnk accepted this revision.
rnk added a comment.
This revision is now accepted and ready to land.
lgtm
https://reviews.llvm.org/D24598
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
EricWF accepted this revision.
EricWF added a comment.
This revision is now accepted and ready to land.
LGTM. Although I would have thought the first half of the conjunction would
have prevented MSVC's PP from seeing the `__has_include`.
I'll get to the rest of the patches tomorrow.
Author: ericwf
Date: Tue Oct 4 16:25:51 2016
New Revision: 283260
URL: http://llvm.org/viewvc/llvm-project?rev=283260=rev
Log:
[libcxx] [test] Guard __has_include usage with a macro
Summary: There's a macro scheme already being used for __has_feature etc. Use
it for __has_include too, which
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
There's a macro scheme already being used for __has_feature etc. Use it for
__has_include too, which makes MSVC happy (it doesn't support __has_include
yet, and unguarded use
parallaxe added a comment.
In https://reviews.llvm.org/D23236#557898, @dcoughlin wrote:
> Upon reflection, I don't think this is the right approach.
>
> Desugaring any AttributedType in the return type seems like a really, really
> big hammer and could be an unexpected surprise for future
rmaprath added a comment.
In https://reviews.llvm.org/D24562#561442, @Eugene.Zelenko wrote:
> Looks like patch was not committed.
Need to replicate this to as many tests as possible (~150). I was hoping to do
all that and upload another diff for a final review, couldn't get to it I'm
afraid.
Author: hans
Date: Tue Oct 4 16:01:04 2016
New Revision: 283258
URL: http://llvm.org/viewvc/llvm-project?rev=283258=rev
Log:
clang-cl: Make /Fo apply also when using -flto
Modified:
cfe/trunk/lib/Driver/Driver.cpp
cfe/trunk/test/Driver/cl-outputs.c
Modified:
Author: hans
Date: Tue Oct 4 16:00:57 2016
New Revision: 283255
URL: http://llvm.org/viewvc/llvm-project?rev=283255=rev
Log:
clang-cl: Expose the -flto option
We could hook up /GL as an alias for -flto, but that might be
confusing, as clang-cl in that mode would not be drop-in compatible
with
Author: hans
Date: Tue Oct 4 16:01:02 2016
New Revision: 283257
URL: http://llvm.org/viewvc/llvm-project?rev=283257=rev
Log:
clang-cl: Use the .obj file extension also in LTO mode
Modified:
cfe/trunk/lib/Driver/Types.cpp
cfe/trunk/test/Driver/cl-outputs.c
Modified:
Author: hans
Date: Tue Oct 4 16:01:00 2016
New Revision: 283256
URL: http://llvm.org/viewvc/llvm-project?rev=283256=rev
Log:
clang-cl: expose the -fuse-ld option
Modified:
cfe/trunk/include/clang/Driver/Options.td
cfe/trunk/test/Driver/cl-link.c
Modified:
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL281666.
https://reviews.llvm.org/D24488
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Anastasia added a comment.
> Regarding the improvement proposed by us which "flatten" captured variables
> into invoke_function argument list and block_literal pointer wouldn't be
> passed as first argument(to invoke_function) anymore. The reason why it
> doesn't require global memory
Author: zaks
Date: Tue Oct 4 15:49:31 2016
New Revision: 283253
URL: http://llvm.org/viewvc/llvm-project?rev=283253=rev
Log:
[analyzer] Add PostStmt callback for ArraySubscriptExpr
A patch by Jan Smets!
Differential Revision: https://reviews.llvm.org/D25009
Modified:
Eugene.Zelenko added a comment.
Looks like patch was not committed.
https://reviews.llvm.org/D24703
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL281979.
https://reviews.llvm.org/D24712
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: spatel
Date: Tue Oct 4 15:44:05 2016
New Revision: 283251
URL: http://llvm.org/viewvc/llvm-project?rev=283251=rev
Log:
[clang] make reciprocal estimate codegen a function attribute
The motivation for the change is that we can't have pseudo-global settings
for codegen living in
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283251: [clang] make reciprocal estimate codegen a function
attribute (authored by spatel).
Changed prior to commit:
https://reviews.llvm.org/D24815?vs=73364=73548#toc
Repository:
rL LLVM
Author: vedantk
Date: Tue Oct 4 15:36:04 2016
New Revision: 283249
URL: http://llvm.org/viewvc/llvm-project?rev=283249=rev
Log:
[ubsan] Disable bounds-check for flexible array ivars
This eliminates a class of false positives for -fsanitize=array-bounds
on instrumented ObjC projects.
NoQ added inline comments.
> chapuni wrote in CloneDetection.cpp:113
> You should update \param here. See also r283106.
Thanks!! Will do.
Repository:
rL LLVM
https://reviews.llvm.org/D24916
___
cfe-commits mailing list
vsk added a comment.
Thanks for the review!
I looked at the IR and confirmed that the ivars are laid out in the order
they're defined, that the indirect ivar offsets make sense, and that the
runtime ivar offsets match up with what we expect. E.g;
@"OBJC_IVAR_$_FlexibleArray1.chars" = global
NoQ added a comment.
In https://reviews.llvm.org/D24916#561369, @vitalybuka wrote:
> Out of curiosity, how was MSVC crash solved?
It wasn't, unfortunately; phabricator closed this revision by looking at the
commit that was already reverted, with a delay (see
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283249: [ubsan] Disable bounds-check for flexible array
ivars (authored by vedantk).
Changed prior to commit:
https://reviews.llvm.org/D7?vs=73508=73547#toc
Repository:
rL LLVM
vitalybuka added a comment.
Out of curiosity, how was MSVC crash solved?
Repository:
rL LLVM
https://reviews.llvm.org/D24916
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
Eugene.Zelenko closed this revision.
Eugene.Zelenko added a comment.
Committed in https://reviews.llvm.org/rL282488.
https://reviews.llvm.org/D24961
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Author: djasper
Date: Tue Oct 4 15:18:25 2016
New Revision: 283246
URL: http://llvm.org/viewvc/llvm-project?rev=283246=rev
Log:
clang-format: Fix bad multi-variable for-loop formatting.
Before:
for (int*p, *q; p != q; p = p->next) {
After:
for (int *p, *q; p != q; p = p->next) {
Modified:
CaseyCarter added a comment.
I'll push a revision with the whitespace changes reverted soon.
> .gitignore:59
> keep.lst
> +.vscode/
This is an editor byproduct, I suppose, not "MSVC libraries test harness". Let
me know if anyone cares and I'll add a comment.
> any:553
> +
CaseyCarter updated this revision to Diff 73538.
CaseyCarter added a comment.
Fix inadvertent whitespace changes.
https://reviews.llvm.org/D25249
Files:
.gitignore
include/any
test/libcxx/utilities/any/any.class/any.assign/value.pass.cpp
vleschuk updated this revision to Diff 73537.
vleschuk added a comment.
Pass alignment in bits instead of bytes to backend (conversion is done when
emitting DW_AT_alignment).
https://reviews.llvm.org/D24426
Files:
lib/CodeGen/CGDebugInfo.cpp
lib/CodeGen/CGDebugInfo.h
Author: aizatsky
Date: Tue Oct 4 14:19:16 2016
New Revision: 283242
URL: http://llvm.org/viewvc/llvm-project?rev=283242=rev
Log:
[sancov] documentation update after r283241
Modified:
cfe/trunk/docs/SanitizerCoverage.rst
Modified: cfe/trunk/docs/SanitizerCoverage.rst
URL:
CaseyCarter created this revision.
CaseyCarter added reviewers: EricWF, mclow.lists.
CaseyCarter added a subscriber: cfe-commits.
Changes to non-portable behavior in tests. Inline detailed description of
each change is forthcoming. Changes are almost entirely in test code, with one
behavioral
STL_MSFT created this revision.
STL_MSFT added reviewers: EricWF, mclow.lists.
STL_MSFT added a subscriber: cfe-commits.
Fix MSVC shadow warnings in a newly added test, by renaming local variables.
https://reviews.llvm.org/D25248
Files:
test/std/utilities/utility/forward/move.pass.cpp
zaks.anna added a comment.
Should this revision be closed?
https://reviews.llvm.org/D23853
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
agutowski added inline comments.
> agutowski wrote in TargetBuiltins.h:100
> Nice, thanks!
> As far as I see, it creates some inconsistency in usage of the word "last",
> because it's used wrong everywhere else - LastTSBuiltin is the number of the
> last target-specific builtin **plus one**,
agutowski added inline comments.
> rnk wrote in TargetBuiltins.h:100
> I think this would be better with just one enum to reduce compilation time:
>
> /// \brief X86 builtins
> namespace X86 {
> enum {
> LastTIBuiltin = clang::Builtin::FirstTSBuiltin - 1,
> #define
davidsh updated this revision to Diff 73520.
davidsh added a comment.
Adding a parameter to IgnoreContainers instead of copying the logic.
https://reviews.llvm.org/D24615
Files:
include/clang/AST/Stmt.h
lib/AST/Stmt.cpp
lib/Sema/SemaOpenMP.cpp
test/OpenMP/for_loop_messages.cpp
Index:
Hi Richard,
Thanks for your analysis.
This patch is intended to mitigate use-after-free bugs. In that context a
“define strict behavior for invalid pointer values” we could deploy in
production code would be very useful. Maybe calling this a sanitizer is
misleading, and instead it could be
agutowski updated this revision to Diff 73521.
agutowski added a comment.
merge enums
https://reviews.llvm.org/D24598
Files:
include/clang/Basic/BuiltinsX86_64.def
include/clang/Basic/TargetBuiltins.h
lib/Basic/Targets.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Headers/intrin.h
elsteveogrande updated this revision to Diff 73518.
elsteveogrande added a comment.
- Fix a few more style nits according to LLVM style guide.
- Further fixed w/ `clang-format -style=LLVM`, kept (most of) recommended
changes.
- Added more unit tests (more include cases: `#include_next`,
Author: rnk
Date: Tue Oct 4 13:10:23 2016
New Revision: 283235
URL: http://llvm.org/viewvc/llvm-project?rev=283235=rev
Log:
Test what happens when tag lookup and redeclaration lookup disagree
Clang has a diagnostic for the what happens when an elaborated type
implicitly creates a tag
rnk added a comment.
Let's avoid the duplicate enum, otherwise looks good
> TargetBuiltins.h:100
> + /// \brief X86-64 builtins
> + namespace X86_64 {
> + enum {
I think this would be better with just one enum to reduce compilation time:
/// \brief X86 builtins
namespace X86 {
aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.
Can you double-check that the memory layout is actually what we think it is by
inspecting the generated IR? Otherwise this LGTM.
https://reviews.llvm.org/D7
majnemer added inline comments.
> ItaniumMangle.cpp:1234
>
> - mangleSourceName(II);
> + auto FD = dyn_cast(ND);
> + bool isRegCall = (FD != nullptr) &&
`auto *`
> ItaniumMangle.cpp:1235
> + auto FD = dyn_cast(ND);
> + bool isRegCall = (FD != nullptr) &&
> +
elsteveogrande added a comment.
Thanks again @majnemer! Other vars are fixed, will send an update shortly.
> majnemer wrote in PrintPreprocessedOutput.cpp:344
> Could this just return a StringRef? You could use an empty StringRef on
> failure.
I'll get rid of this in favor of
rSerge removed rL LLVM as the repository for this revision.
rSerge updated this revision to Diff 73509.
rSerge added a comment.
My mistake was that initially I only enumerated the unsupported targets from
llvm\include\llvm\ADT\Triple.h . Now I've added also the cases from
majnemer added inline comments.
> ItaniumMangle.cpp:1413-1414
>
> -void CXXNameMangler::mangleSourceName(const IdentifierInfo *II) {
> - // ::=
> +void CXXNameMangler::mangleSourceName(const IdentifierInfo *II,
> + bool isRegCall) {
> + // ::=
mclow.lists added a comment.
I had no idea that we had no tests for `vector::clear`. Oosps.
This looks good to me, but I want to play with the codegen for a bit before
approving it.
Also, you should add `cfe-commits` to the subscribers.
thanks for doing this!
> clear.pass.cpp:25
> +
rnk added inline comments.
> erichkeane wrote in ItaniumMangle.cpp:1236-1237
> Right, good catch. I looked at Mangle.cpp which does something very similar,
> and assumes that FunctionType is a valid cast here, so I've switched this
> here too, please let me know if that is a wrong assumption.
spatel added inline comments.
> mehdi_amini wrote in CGCall.cpp:1735
> I think I remember folks being against FMF on calls (Chris Lattner?), I'll
> try to find the relevant discussion.
> Otherwise your plan seems fine to me!
Yes - Chris was opposed to FMF on intrinsics (preferring
majnemer added inline comments.
> majnemer wrote in PrintPreprocessedOutput.cpp:321-325
> Variables should start with uppercase characters.
Please uppercase all your other variables too.
> PrintPreprocessedOutput.cpp:344
> + */
> +bool tryGetTokenText(StringRef *text, const Token ) {
> + if
erichkeane added inline comments.
> rnk wrote in TargetInfo.cpp:3742-3743
> But, if the return value is returned directly, it doesn't conflict with the
> free parameter registers. In my example, the return value can use XMM0-3 and
> the parameters can use XMM0-15. Can you add this test case
On Mon, Oct 3, 2016 at 2:59 PM, Peter Collingbourne wrote:
> pcc added a reviewer: rsmith.
> pcc added a comment.
>
> It seems to me that this sanitizer would break the semantics of otherwise
> well-defined programs. For example:
>
> int *x = nullptr;
> delete x;
> if (x
rnk added inline comments.
> erichkeane wrote in TargetInfo.cpp:3742-3743
> That was my intent, this should allow return values to be in registers as
> well if I'm reading the spec correctly. The idea is that register use is
> 'greedy'.
But, if the return value is returned directly, it
erichkeane updated this revision to Diff 73507.
erichkeane marked an inline comment as done.
erichkeane added a comment.
Herald added a subscriber: dschuff.
Fixes based on Alexey/Ried's feedback
https://reviews.llvm.org/D25204
Files:
include/clang-c/Index.h
include/clang/AST/Type.h
echristo added inline comments.
> mehdi_amini wrote in CGCall.cpp:1735
> I think I remember folks being against FMF on calls (Chris Lattner?), I'll
> try to find the relevant discussion.
> Otherwise your plan seems fine to me!
Agreed. Also shouldn't hold up this patch :)
vsk added a comment.
The ivar list is set by all_declared_ivar_begin(), which accounts for ivars
introduced by an implementation. Thanks for raising the point.
Consider this test:
@interface HasFlexibleArray {
@public char chars[0];
}
@implementation HasFlexibleArray {
@public char
hokein created this revision.
hokein added a reviewer: aaron.ballman.
hokein added a subscriber: cfe-commits.
https://reviews.llvm.org/D25244
Files:
clang-tidy/google/NonConstReferences.cpp
clang-tidy/google/NonConstReferences.h
docs/clang-tidy/checks/google-runtime-references.rst
probinson added a comment.
As Renato points out, this addresses the user experience of tripping over the
lack of -Og, however it does not really address the intent of PR20765 which is
to provide a mode of optimizations that don't particularly interfere with
debugging.
Eventually someone needs
1 - 100 of 203 matches
Mail list logo