| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
| |
Creating temporary std::strings there is unnecessary.
llvm-svn: 238412
|
| |
|
|
| |
llvm-svn: 238399
|
| |
|
|
| |
llvm-svn: 238398
|
| |
|
|
|
|
|
|
| |
that makes more sense (at least to me).
The old code had a bug if the description was between 75 and 85 characters or so as it substracted PSLen from Desc.size() instead of MAX_LINE_LEN in the compare. It also calculated odd values for PosE on the last split and just let StringRef::slice take care of it being larger than the description string.
llvm-svn: 238187
|
| |
|
|
|
|
|
|
| |
ensure the result is a positive number.
I think the fact that it was explicitly excluding 0 kept this from being a tautology. The exclusion of 0 for the old math was also a bug that's easily hit if the description gets split into multiple lines.
llvm-svn: 238186
|
| |
|
|
|
|
| |
tablegen header. Minor cleanup in surrounding code.
llvm-svn: 238185
|
| |
|
|
| |
llvm-svn: 238181
|
| |
|
|
| |
llvm-svn: 238180
|
| |
|
|
|
|
| |
the definition since it's already declared in a header file.
llvm-svn: 238178
|
| |
|
|
| |
llvm-svn: 238177
|
| |
|
|
|
|
|
|
|
| |
We had not been trying hard enough to resolve def names inside multiclasses
that had complex concatenations, etc. Now we'll try harder.
Patch by Amaury Sechet!
llvm-svn: 237877
|
| |
|
|
|
|
| |
just generally consistent across all of the overloads.
llvm-svn: 237775
|
| |
|
|
| |
llvm-svn: 237774
|
| |
|
|
|
|
| |
These were the old names for these operations long ago. NFC
llvm-svn: 237514
|
| |
|
|
|
|
| |
some unnecessary curly braces from the same area.
llvm-svn: 237513
|
| |
|
|
|
|
| |
portion of the body based on what will also be the terminating condition. NFC
llvm-svn: 237511
|
| |
|
|
|
|
|
|
| |
Found by ubsan. This was taking a bool and left shifting by 32 - the
result is 64 bit, so we should really do the math in a type it fits
in.
llvm-svn: 237345
|
| |
|
|
|
|
|
|
| |
functional change intended.
The outer if had 3 separate conditions ORed together and then the inner ifs detected which of the three conditions it was by using only a portion of the specific condition. Just put the whole condition in each inner if and remove the outer if.
llvm-svn: 237343
|
| |
|
|
| |
llvm-svn: 237342
|
| |
|
|
|
|
| |
if it was just comparing to 0. NFC.
llvm-svn: 237340
|
| |
|
|
|
|
| |
ArrayRef iterators. NFC
llvm-svn: 237231
|
| |
|
|
| |
llvm-svn: 237090
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
cleanups.
Also, change code in tablegen which printed a message and then called
"exit(1)" to use PrintFatalError, instead.
This fixes instances where an empty output file was left behind after
a failed tablegen invocation, which would confuse subsequent ninja
runs into not attempting to rebuild.
Differential Revision: http://reviews.llvm.org/D9608
llvm-svn: 237058
|
| |
|
|
| |
llvm-svn: 236398
|
| |
|
|
|
|
| |
unnecessary curly braces. NFC
llvm-svn: 236397
|
| |
|
|
|
|
| |
end of previous line. NFC
llvm-svn: 236206
|
| |
|
|
| |
llvm-svn: 236205
|
| |
|
|
|
|
| |
Fold an assignment into an if. Use auto on the result of a couple dyn_casts. NFC
llvm-svn: 236204
|
| |
|
|
| |
llvm-svn: 236089
|
| |
|
|
| |
llvm-svn: 236088
|
| |
|
|
|
|
| |
cast which asserts internally. NFC
llvm-svn: 236087
|
| |
|
|
| |
llvm-svn: 236083
|
| |
|
|
| |
llvm-svn: 235697
|
| |
|
|
| |
llvm-svn: 235696
|
| |
|
|
| |
llvm-svn: 235482
|
| |
|
|
|
|
| |
seem to execute in our codebase today and date back to a time when there was an allocation in this function.
llvm-svn: 235481
|
| |
|
|
|
|
| |
Previously the code was accidentally checking if 'this' was an IntRecTy which it can't be since 'this' is a BitRecTy. Looking back at the history it appears it was intended to check RHS.
llvm-svn: 235477
|
| |
|
|
| |
llvm-svn: 235476
|
| |
|
|
|
|
|
|
| |
before being dereferenced."
Turns out I misread the parentheses. Though I'm pretty sure its always a RecordRecTy and non of the callers really seem to expect null. But until I'm completely sure I'm going to revert this.
llvm-svn: 235469
|
| |
|
|
| |
llvm-svn: 235468
|
| |
|
|
| |
llvm-svn: 235467
|
| |
|
|
|
|
| |
StringRecTy object.
llvm-svn: 235466
|
| |
|
|
|
|
| |
singleton object created by UnsetInit::get(). Makes it more consistent with the other types.
llvm-svn: 235465
|
| |
|
|
|
|
| |
being dereferenced.
llvm-svn: 235463
|
| |
|
|
|
|
| |
These add no value but can make a class non-trivially copyable. NFC.
llvm-svn: 234688
|
| |
|
|
|
|
| |
No functional change intended.
llvm-svn: 234586
|
| |
|
|
| |
llvm-svn: 230909
|
| |
|
|
| |
llvm-svn: 229422
|
| |
|
|
|
|
|
|
|
|
| |
This allows IDEs to recognize the entire set of header files for
each of the core LLVM projects.
Differential Revision: http://reviews.llvm.org/D7526
Reviewed By: Chris Bieneman
llvm-svn: 228798
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch was generated by a clang tidy checker that is being open sourced.
The documentation of that checker is the following:
/// The emptiness of a container should be checked using the empty method
/// instead of the size method. It is not guaranteed that size is a
/// constant-time function, and it is generally more efficient and also shows
/// clearer intent to use empty. Furthermore some containers may implement the
/// empty method but not implement the size method. Using empty whenever
/// possible makes it easier to switch to another container in the future.
Patch by Gábor Horváth!
llvm-svn: 226161
|