[CMake] Simplify code for detecting/setting compiler flags

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201543 91177308-0d34-0410-b5e6-96231b3b80d8
Remove debug print

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201544 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Make __cxa_demangle non-weak symbol on Android.

This fixes global-demangle.cc test on Android.

https://code.google.com/p/address-sanitizer/issues/detail?id=264


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201545 91177308-0d34-0410-b5e6-96231b3b80d8
AVX-512: Fixed size of mask registers


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201546 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Simplify setting compile flag disabling RTTI

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201547 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Replace rand_r with rand in test.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201548 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Check for -fPIE and -ffreestanding flags for consistency

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201549 91177308-0d34-0410-b5e6-96231b3b80d8
Add a bunch of OpSize32 tags to 64-bit mode only instructions to match their 32-bit mode counterparts for cases where there is also a OpSize16 instruction.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201550 91177308-0d34-0410-b5e6-96231b3b80d8
Add PS prefix to some classes I missed in r201538.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201551 91177308-0d34-0410-b5e6-96231b3b80d8
Drop test/asan/GenericConfig directory

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201552 91177308-0d34-0410-b5e6-96231b3b80d8
Simplify lit test configs for LSan and UBSan by using a generic config

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201553 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] one more lit test for deadlock detector; more to come

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201554 91177308-0d34-0410-b5e6-96231b3b80d8
llvm-cov: Support gcov's extermely lenient treatment of -o

In gcov, the -o flag can accept either a directory or a file name.
When given a directory, the gcda and gcno files are expected to be in
that directory. When given a file, the gcda and gcno files are
expected to be named based on the stem of that file. Non-existent
paths are treated as files.

This implements compatible behaviour.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201555 91177308-0d34-0410-b5e6-96231b3b80d8
[CMake] Add top-level target for each compiler-rt library, and add 'compiler-rt' target encompassing them all.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201556 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] Override default sigaltstack setting on Android.

Android libc always sets altstack on non-main threads, but it is too small for
our unwinder. With use_sigaltstack=1, override this setting with a larger one.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201557 91177308-0d34-0410-b5e6-96231b3b80d8
X86: use vpsllvd (& friends) for 16-bit shifts on Haswell

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201558 91177308-0d34-0410-b5e6-96231b3b80d8
GlobalMerge: move "-global-merge" option to the pass itself.

It's rather odd to have the flag enabling and disabling this pass only affect a
single target.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201559 91177308-0d34-0410-b5e6-96231b3b80d8
Darwin builds: handle different possible form for SDKROOT.

Modifying build_llvm to handle SDKROOT being the name of an SDK rather than a
path. This will still work if SDKROOT is a path.

rdar://problem/15162322

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201560 91177308-0d34-0410-b5e6-96231b3b80d8
XCore target: Fix llvm.eh.return and EH info register handling

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201561 91177308-0d34-0410-b5e6-96231b3b80d8
XCore target: addMemOperand as necessary

BuildMI instructions were not including MachineMemOperand information.
This was discovered by 'SingleSource/Benchmarks/Stanford/Oscar' failing
due to a FrameIndex load incorrectly being hoisted by postra-machine-licm.
No other tests have been found to fail.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201562 91177308-0d34-0410-b5e6-96231b3b80d8