| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 159628
|
|
|
|
|
|
|
|
|
|
| |
is selected. This will allow more flexibility when converting diagnostics to
use template type diffing.
Also updated the internal manual and test cases for correctly keeping the bold
attribute and for tree printing.
llvm-svn: 159463
|
|
|
|
|
|
| |
This patch was reviewed in the llvm-commits list by Jim Grosbach.
llvm-svn: 159366
|
|
|
|
| |
llvm-svn: 159262
|
|
|
|
|
|
|
| |
add interface for removing a FileEntry from the cache.
Forces a re-read the contents from disk, e.g. because a tool (like cling) wants to pick up a modified file.
llvm-svn: 159256
|
|
|
|
|
|
|
|
|
|
|
|
| |
comparison between two templated types when they both appear in a diagnostic.
Type elision will remove indentical template arguments, which can be disabled
with -fno-elide-type. Cyan highlighting is applied to the differing types.
For more formatting, -fdiagnostic-show-template-tree will output the template
type as an indented text tree, with differences appearing inline. Template
tree works with or without type elision.
llvm-svn: 159216
|
|
|
|
|
|
|
|
|
| |
express library-level dependencies within Clang.
This is no more verbose really, and plays nicer with the rest of the
CMake facilities. It should also have no change in functionality.
llvm-svn: 158888
|
|
|
|
|
|
|
|
|
| |
places. I've turned this off for the GNU runtimes --- I don't know if
they support weak class import, but it's easy enough for them to opt in.
Also tweak a comment per review by Jordan.
llvm-svn: 158860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
target Objective-C runtime down to the frontend: break this
down into a single target runtime kind and version, and compute
all the relevant information from that. This makes it
relatively painless to add support for new runtimes to the
compiler. Make the new -cc1 flag, -fobjc-runtime=blah-x.y.z,
available at the driver level as a better and more general
alternative to -fgnu-runtime and -fnext-runtime. This new
concept of an Objective-C runtime also encompasses what we
were previously separating out as the "Objective-C ABI", so
fragile vs. non-fragile runtimes are now really modelled as
different kinds of runtime, paving the way for better overall
differentiation.
As a sort of special case, continue to accept the -cc1 flag
-fobjc-runtime-has-weak, as a sop to PLCompatibilityWeak.
I won't go so far as to say "no functionality change", even
ignoring the new driver flag, but subtle changes in driver
semantics are almost certainly not intended.
llvm-svn: 158793
|
|
|
|
|
|
|
|
|
|
| |
r158085 added some logic to track predefined declarations. The main reason we
had predefined declarations in the input was because the __builtin_va_list
declarations were injected into the preprocessor input. As of r158592 we
explicitly build the __builtin_va_list declarations. Therefore the predefined
decl tracking is no longer needed.
llvm-svn: 158732
|
|
|
|
|
|
|
| |
It turns out SourceManager treating the "one-past-the-end" location as invalid,
but then failing to set the invalid flag properly.
llvm-svn: 158699
|
|
|
|
| |
llvm-svn: 158614
|
|
|
|
|
|
| |
should be better fix for PR10331, or, "clang X:\foo.c" fails.
llvm-svn: 158596
|
|
|
|
|
|
|
| |
The target specific __builtin_va_list types are now explicitly built instead
of injecting strings into the preprocessor input.
llvm-svn: 158592
|
|
|
|
|
|
| |
broken duplicates of comments that are in the corresponding header files.
llvm-svn: 158550
|
|
|
|
| |
llvm-svn: 158549
|
|
|
|
| |
llvm-svn: 158548
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-target-cpu options.
This functionality is based on what is done on ARM, and enables selecting PPC CPUs
in a way compatible with gcc's driver. Also, mirroring gcc (and what is done on x86),
-mcpu=native support was added. This uses the host cpu detection from LLVM
(which will also soon be updated by refactoring code currently in backend).
In order for this to work, the target needs a list of valid CPUs -- we now accept all CPUs accepted by LLVM.
A few preprocessor defines for common CPU types have been added.
llvm-svn: 158334
|
|
|
|
| |
llvm-svn: 158284
|
|
|
|
|
|
| |
from Tom Honermann!
llvm-svn: 158211
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In standard C since C89, a 'translation-unit' is syntactically defined to have
at least one "external-declaration", which is either a decl or a function
definition. In Clang the latter gives us a declaration as well.
The tricky bit about this warning is that our predefines can contain external
declarations (__builtin_va_list and the 128-bit integer types). Therefore our
AST parser now makes sure we have at least one declaration that doesn't come
from the predefines buffer.
Also, remove bogus warning about empty source files. This doesn't catch source
files that only contain comments, and never fired anyway because of our
predefines.
PR12665 and <rdar://problem/9165548>
llvm-svn: 158085
|
|
|
|
|
|
| |
when single float ABI is selected.
llvm-svn: 157996
|
|
|
|
| |
llvm-svn: 157907
|
|
|
|
|
|
| |
types defined.
llvm-svn: 157906
|
|
|
|
| |
llvm-svn: 157904
|
|
|
|
| |
llvm-svn: 157733
|
|
|
|
|
|
| |
missing break at the end of btver1 feature list.
llvm-svn: 157680
|
|
|
|
|
|
| |
This doesn't really fit the existing SSELevel so it gets an extra flag.
llvm-svn: 157630
|
|
|
|
| |
llvm-svn: 157626
|
|
|
|
|
|
|
|
| |
already adds some.
No test as the output is highly dependend on the local configuration.
llvm-svn: 157520
|
|
|
|
|
|
| |
NV_CONTRIB
llvm-svn: 157403
|
|
|
|
| |
llvm-svn: 157173
|
|
|
|
|
|
|
|
|
| |
Because in CUDA types do not have associated address spaces,
globals are declared in their "native" address space, and accessed
by bitcasting the pointer to address space 0. This relies on address
space 0 being a unified address space.
llvm-svn: 157167
|
|
|
|
| |
llvm-svn: 156567
|
|
|
|
|
|
|
|
| |
that bridging between the two is free. Saves ~4k of code size,
although I don't see any measurable performance difference
(unfortunately).
llvm-svn: 156187
|
|
|
|
|
|
|
|
|
|
|
| |
validate that we didn't override the contents of any of such files.
If this is detected, emit a diagnostic error and recover gracefully
by using the contents of the original file that the PCH was built from.
Part of rdar://11305263
llvm-svn: 156107
|
|
|
|
| |
llvm-svn: 155900
|
|
|
|
| |
llvm-svn: 155632
|
|
|
|
| |
llvm-svn: 155624
|
|
|
|
|
|
|
|
|
|
| |
replace
with _REENTRANT. Also remove undef _POSIX_THREADS in phread.h.
Patch by Brad Smith!
llvm-svn: 155535
|
|
|
|
|
|
| |
test suite failures.
llvm-svn: 155371
|
|
|
|
| |
llvm-svn: 155363
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
r155047. See the LLVM log for the primary motivation:
http://llvm.org/viewvc/llvm-project?rev=155047&view=rev
Primary commit r154828:
- Several issues were raised in review, and fixed in subsequent
commits.
- Follow-up commits also reverted, and which should be folded into the
original before reposting:
- r154837: Re-add the 'undef BUILTIN' thing to fix the build.
- r154928: Fix build warnings, re-add (and correct) header and
license
- r154937: Typo fix.
Please resubmit this patch with the relevant LLVM resubmission.
llvm-svn: 155048
|
|
|
|
|
|
| |
the MipsTargetInfoBase::setFeatureEnabled() routine.
llvm-svn: 154998
|
|
|
|
|
|
|
| |
type for rewriter project will be BoolTy.
// rdar://11231426.
llvm-svn: 154861
|
|
|
|
| |
llvm-svn: 154828
|
|
|
|
|
|
|
| |
Otherwise MipsTargetInfoBase::getDefaultFeatures() might return an invalid
features set with an empty feature name.
llvm-svn: 154606
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This method is very hot, it is called when emitting diagnostics, in -E mode
and for many #pragma handlers. It scans through the whole source file to
count newlines, records and caches them in a vector.
The speedup from vectorization isn't very large, as we fall back to bytewise
scanning when we hit a newline. There might be a way to avoid leaving the sse
loop but everything I tried didn't work out because a call to push_back
clobbers xmm registers.
About 2% speedup on average on "clang -E > /dev/null" of all .cpp files in
clang's lib/Sema.
llvm-svn: 154204
|
|
|
|
|
|
|
| |
to the base class MipsTargetInfoBase. These macros are applicable for both
32/64-bits targets.
llvm-svn: 154116
|
|
|
|
|
|
|
|
|
|
|
| |
uses Neon instructions for single-precision FP.
-mfpmath=neon is analogous to passing llc -mattr=+neonfp.
-mfpmath=[vfp|vfp2|vfp3|vfp4] is analogous to passing llc -mattr=-neonfp.
rdar://11108618
llvm-svn: 154046
|