- Jun 11, 2013
-
-
Rafael Espindola authored
No functionality change. llvm-svn: 183758
-
Eli Friedman authored
llvm-svn: 183757
-
Rafael Espindola authored
Instead of a custom implementation of replaceAllUsesWith, we just call replaceAllUsesWith and recreate llvm.used and llvm.compiler-used. This change is particularity interesting because it makes llvm see through what clang is doing with static used functions in extern "C" contexts. With this change, running clang -O2 in extern "C" { __attribute__((used)) static void foo() {} } produces @llvm.used = appending global [1 x i8*] [i8* bitcast (void ()* @foo to i8*)], section "llvm.metadata" define internal void @foo() #0 { entry: ret void } llvm-svn: 183756
-
Greg Clayton authored
Remove eFormatHalfFloat as it isn't needed. eFormatFloat should be used and the byte size will tell us how to display it. llvm-svn: 183755
-
Rafael Espindola authored
No functionality change. llvm-svn: 183754
-
Rafael Espindola authored
It will be tested in the next commit which moves another user to identify_magic. Original message: Fix an out of bounds array access. We were looking at Magic[5] without checking Length. Since this path would not return unless Length >= 18 anyway, just move the >= 18 check up. llvm-svn: 183753
-
Rafael Espindola authored
llvm-svn: 183752
-
Argyrios Kyrtzidis authored
llvm-svn: 183751
-
Alexander Kornienko authored
Summary: "//Test" becomes "// Test". This change is aimed to improve code readability and conformance to certain coding styles. If a comment starts with a non-alphanumeric character, the space isn't added, e.g. "//-*-c++-*-" stays unchanged. Reviewers: klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D949 llvm-svn: 183750
-
Rafael Espindola authored
This enables the compiler to see the enum and produce warnings about a switch not being fully covered. Fix one of these warnings. llvm-svn: 183749
-
Sergey Matveev authored
llvm-svn: 183748
-
Rafael Espindola authored
No functionality change. llvm-svn: 183747
-
Rafael Espindola authored
No functionality change. llvm-svn: 183746
-
Rafael Espindola authored
No functionality change. llvm-svn: 183745
-
Benjamin Kramer authored
llvm-svn: 183744
-
Rafael Espindola authored
The effect of llvm.used is to introduce an invisible reference, so this seems a reasonable restriction. It will be used to provide an easy ordering of the entries in llvm.used. llvm-svn: 183743
-
Benjamin Kramer authored
llvm-svn: 183742
-
Benjamin Kramer authored
Actions outlive consumers. PR16295. Found by AddressSanitizer. llvm-svn: 183741
-
Rafael Espindola authored
The yaml reader is not specific to any file format. This patch moves it to TargetInfo and makes validate a non virtual interface so that it can be constructed from a single location. The same method will be used to create a reader for llvm bitcode files. llvm-svn: 183740
-
Manuel Klimek authored
Patch by Chris Gray. llvm-svn: 183739
-
Dmitry Vyukov authored
this is how the rest of the codebase is built llvm-svn: 183738
-
NAKAMURA Takumi authored
FIXME: Introduce yet another checker but assert(0). llvm-svn: 183736
-
Sergey Matveev authored
llvm-svn: 183735
-
Mihai Popa authored
Negative zero is returned by the primary expression parser as INT32_MIN, so all that the method needs to do is to accept this value. Behavior already present for Thumb2. llvm-svn: 183734
-
Mihai Popa authored
This patch adds support for FPINST/FPINST2 as operands to vmsr/vmrs. These are optional registers that may be supported some ARM implementations to aid with resolution of floating point exceptions. The manual pages for vmsr and vmrs do not detail their use. Encodings and other information can be found in ARM Architecture Reference Manual section F, chapter 6, paragraph 3. llvm-svn: 183733
-
Alexey Samsonov authored
llvm-svn: 183732
-
Amaury de la Vieuville authored
llvm-svn: 183731
-
Alexey Samsonov authored
llvm-svn: 183730
-
Amaury de la Vieuville authored
The decoded MCInst wasn't reencoded as the same instruction llvm-svn: 183729
-
NAKAMURA Takumi authored
- Don't use assert(0), or tests may pass or fail according to assertions. - For now, The tests are marked as XFAIL for win32 hosts. FIXME: Could we avoid XFAIL to specify triple in the RUN lines? llvm-svn: 183728
-
NAKAMURA Takumi authored
FYI, isOSBinFormatCOFF() is as same as isOSWindows(), on trunk. llvm-svn: 183727
-
NAKAMURA Takumi authored
llvm-svn: 183726
-
David Majnemer authored
llvm-svn: 183725
-
Rui Ueyama authored
llvm-svn: 183724
-
David Majnemer authored
DR61 affirms that expressions containing unresolved member access should be disallowed when performing "address of" operations. llvm-svn: 183723
-
David Majnemer authored
Disallow the existence of a declaration of a member class that isn't a forward declaration before it's definition. llvm-svn: 183722
-
Richard Smith authored
into the expression and dig out a single lifetime-extended entity and manually pull its cleanup outside the expression, instead keep a list of the cleanups which we'll need to emit when we get to the end of the full-expression. Also emit those cleanups early, as EH-only cleanups, to cover the case that the full-expression does not terminate normally. This allows IR generation to properly model temporary lifetime when multiple temporaries are extended by the same declaration. We have a pre-existing bug where an exception thrown from a temporary's destructor does not clean up lifetime-extended temporaries created in the same expression and extended to automatic storage duration; that is not fixed by this patch. llvm-svn: 183721
-
Eli Friedman authored
llvm-svn: 183720
-
rdar://problem/12876503Enrico Granata authored
Adding a new setting interpreter.stop-command-source-on-error that dictates a default behavior for whether command source should stop upon hitting an error You can still override the setting for each individual invocation with the usual -e setting llvm-svn: 183719
-
Eli Friedman authored
while fixing a related bug. The fix here was simpler than I thought it would be. Fixes <rdar://problem/10530444>. llvm-svn: 183718
-