| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
| |
llvm-svn: 236102
|
| |
|
|
|
|
|
| |
This partially reverts commit r236056, as the two tests were using the same
names and, when executed in parallel, were having intermittent failures.
llvm-svn: 236101
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In Objective-C some style guides use a style where assignment operators are
aligned, in an effort to increase code readability. This patch adds an option
to the format library which allows this functionality. It is disabled by
default for all the included styles, so it must be explicitly enabled.
The option will change code such as:
- (void)method {
NSNumber *one = @1;
NSNumber *twentyFive = @25;
}
to:
- (void)method {
NSNumber *one = @1;
NSNumber *twentyFive = @25;
}
Patch by Matt Oakes. Thank you!
Accidentally reformatted all the tests...
llvm-svn: 236100
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
The existing code was correct for 32-bit GPR's but not 64-bit GPR's. It now
accounts for both cases.
Reviewers: vkalintiris
Reviewed By: vkalintiris
Subscribers: llvm-commits, mohit.bhakkad, sagar
Differential Revision: http://reviews.llvm.org/D9337
llvm-svn: 236099
|
| |
|
|
|
|
|
|
|
| |
This code is also an import from MacOSx implementation as SysV abi is
similar to what has been implemented for MacOS but may require a few tweaks.
http://reviews.llvm.org/D8538
llvm-svn: 236098
|
| |
|
|
|
|
|
|
|
|
| |
Its mostly imported from MacOSx ABI for arm which is similar.
Further tweaking a updates may be required at a later stage.
http://reviews.llvm.org/D8539
llvm-svn: 236097
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Do the assemble-time shifts from createLShiftOri at the source, which groups all the shifting together, closer to the main logic path, and
store the results in concisely-named variables to improve code clarity.
Reviewers: dsanders
Reviewed By: dsanders
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D8973
llvm-svn: 236096
|
| |
|
|
|
|
| |
multiple rsp packets.
llvm-svn: 236095
|
| |
|
|
| |
llvm-svn: 236093
|
| |
|
|
| |
llvm-svn: 236092
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Buggy case:
someFunction(
[] {
// comment
int i; // invoke formatting here.
}, // force line break
aaa);
llvm-svn: 236091
|
| |
|
|
|
|
|
|
| |
This command is able to list both local variables and stack arguments for a specific thread/frame.
Args are denoted with 'arg="1"'.
Patch from Chuck Ries.
llvm-svn: 236090
|
| |
|
|
| |
llvm-svn: 236089
|
| |
|
|
| |
llvm-svn: 236088
|
| |
|
|
|
|
| |
cast which asserts internally. NFC
llvm-svn: 236087
|
| |
|
|
| |
llvm-svn: 236086
|
| |
|
|
| |
llvm-svn: 236084
|
| |
|
|
| |
llvm-svn: 236083
|
| |
|
|
| |
llvm-svn: 236082
|
| |
|
|
|
|
| |
Follow-up to r236077.
llvm-svn: 236081
|
| |
|
|
| |
llvm-svn: 236080
|
| |
|
|
|
|
|
|
| |
Same as r236073 but for PointerType.
Bug found with AFL fuzz.
llvm-svn: 236079
|
| |
|
|
|
|
| |
ArrayType and StructType accept the same types, so no test.
llvm-svn: 236078
|
| |
|
|
|
|
|
|
|
| |
It doesn't have a maintainer and none of the release testers test it,
so I don't think it should be part of the release.
http://reviews.llvm.org/D9331
llvm-svn: 236077
|
| |
|
|
|
|
| |
Bug found with AFL fuzz.
llvm-svn: 236076
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Wpessimizing-move warns when a call to std::move would prevent copy elision
if the argument was not wrapped in a call. This happens when moving a local
variable in a return statement when the variable is the same type as the
return type or using a move to create a new object from a temporary object.
-Wredundant-move warns when an implicit move would already be made, so the
std::move call is not needed, such as when moving a local variable in a return
that is different from the return type.
Differential Revision: http://reviews.llvm.org/D7633
llvm-svn: 236075
|
| |
|
|
|
|
| |
resolver with a diagnostic instread.
llvm-svn: 236074
|
| |
|
|
|
|
|
|
| |
{Array,Struct}Type::get(Type)
Bug found with AFL fuzz.
llvm-svn: 236073
|
| |
|
|
|
|
|
|
|
|
|
|
| |
function template earlier.
This is necessary in order to allow the use of a constexpr member function, or
a member function with deduced return type, of a local class within a
surrounding instantiated function template specialization.
Patch by Michael Park!
llvm-svn: 236063
|
| |
|
|
| |
llvm-svn: 236062
|
| |
|
|
|
|
| |
These haven't done anything since before r142165.
llvm-svn: 236061
|
| |
|
|
|
|
|
| |
for ARM while the backend will only ignore them. No functional
change intended.
llvm-svn: 236060
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
in the debug info. This patch deletes a hack that emits the members
of local anonymous unions as local variables.
Besides being morally wrong, the existing representation using local
variables breaks internal assumptions about the local variables' storage
size.
Compiling
```
void fn1() {
union {
int i;
char c;
};
i = c;
}
```
with -g -O3 -verify will cause the verifier to fail after SROA splits
the 32-bit storage for the "local variable" c into two pieces because the
second piece is clearly outside the 8-bit range that is expected for a
variable of type char. Given the choice I'd rather fix the debug
representation than weaken the verifier.
Debuggers generally already know how to deal with anonymous unions when
they are members of C++ record types, but they may have problems finding
the local anonymous struct members in the expression evaluator.
rdar://problem/20730771
llvm-svn: 236059
|
| |
|
|
| |
llvm-svn: 236058
|
| |
|
|
| |
llvm-svn: 236057
|
| |
|
|
|
|
| |
Patch by Teresa Johnson.
llvm-svn: 236056
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the profile output from the command line via -fprofile-instr-generate=<path>,
where the specified output path/file will be overridden by the
LLVM_PROFILE_FILE environment variable.
Several changes are made to the runtime to support this:
Add a new interface __llvm_profile_override_default_filename that will
set the profile output filename, but allows LLVM_PROFILE_FILE to override.
This is the interface used by the new option.
Refactor the pid-expansion done for LLVM_PROFILE_FILE into a separate
routine that can be shared by the various filename setting routines
(so that the filename from the option can also use the "%p" syntax).
Move the truncation into setFilename, and only truncate if there is a
new filename specified (to maintain support for appending to the same
profile file in the case of multiple shared objects built with profiling).
Move the handling for a NULL filename passed to __llvm_profile_set_filename and
__llvm_profile_override_default_filename into the new setFilenamePossiblyWithPid
routine. This now correctly resets the output file to default.profraw
instead of NULL.
The handling for a null LLVM_PROFILE_FILE (which should not reset) is done
by caller setFilenameFromEnvironment.
Patch by Teresa Johnson.
llvm-svn: 236055
|
| |
|
|
| |
llvm-svn: 236054
|
| |
|
|
|
|
|
| |
New sections are added to the end of the list, so the RelSections array was
redundant.
llvm-svn: 236053
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is just the clang-side of 32-bit SEH. LLVM still needs work, and it
will determinstically fail to compile until it's feature complete.
On x86, all outlined handlers have no parameters, but they do implicitly
take the EBP value passed in and use it to address locals of the parent
frame. We model this with llvm.frameaddress(1).
This works (mostly), but __finally block inlining can break it. For now,
we apply the 'noinline' attribute. If we really want to inline __finally
blocks on 32-bit x86, we should teach the inliner how to untangle
frameescape and framerecover.
Promote the error diagnostic from codegen to sema. It now rejects SEH on
non-Windows platforms. LLVM doesn't implement SEH on non-x86 Windows
platforms, but there's nothing preventing it.
llvm-svn: 236052
|
| |
|
|
| |
llvm-svn: 236051
|
| |
|
|
|
|
|
|
|
|
|
| |
We were trying to look through COPY instructions, but only to the next
instruction in a BB and incorrectly anyway. The cases where that would actually
be a good idea are rare enough (and not even tested!) that it's not worth
trying to get right.
rdar://20721342
llvm-svn: 236050
|
| |
|
|
|
|
| |
Set the group section index as they are created.
llvm-svn: 236049
|
| |
|
|
| |
llvm-svn: 236048
|
| |
|
|
| |
llvm-svn: 236047
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D9311
llvm-svn: 236046
|
| |
|
|
|
|
| |
Assign the sections in the same pass we compute the index.
llvm-svn: 236045
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
FileScopeAsm should be treated the same as funcion level inline asm.
-fno-gnu-inline-asm should trigger an error if file scope asm is used.
I missed this case from r226340. This should not affect ms-extension
because it is not allowed in the file scope.
Reviewers: bob.wilson, rnk
Reviewed By: rnk
Subscribers: cfe-commits
Differential Revision: http://reviews.llvm.org/D9328
llvm-svn: 236044
|
| |
|
|
| |
llvm-svn: 236043
|
| |
|
|
| |
llvm-svn: 236042
|