- May 06, 2013
-
-
Ulrich Weigand authored
[SystemZ] Set up JIT/MCJIT test cases This patch adds the necessary configuration bits and #ifdef's to set up the JIT/MCJIT test cases for SystemZ. Like other recent targets, we do fully support MCJIT, but do not support the old JIT at all. Set up the lit config files accordingly, and disable old-JIT unit tests. Patch by Richard Sandiford. llvm-svn: 181207
-
Ulrich Weigand authored
[SystemZ] Add MC test cases This adds all MC tests for the SystemZ target. Patch by Richard Sandiford. llvm-svn: 181206
-
Ulrich Weigand authored
[SystemZ] Add DebugInfo test cases This adds all DebugInfo tests for the SystemZ target. This version of the patch incorporates feedback from reviews by Eric Christopher and Rafael Espindola. Thanks to all reviewers! Patch by Richard Sandiford. llvm-svn: 181205
-
Ulrich Weigand authored
[SystemZ] Add CodeGen test cases This adds all CodeGen tests for the SystemZ target. This version of the patch incorporates feedback from a review by Sean Silva. Thanks to all reviewers! Patch by Richard Sandiford. llvm-svn: 181204
-
Ulrich Weigand authored
[SystemZ] Add back end This adds the actual lib/Target/SystemZ target files necessary to implement the SystemZ target. Note that at this point, the target cannot yet be built since the configure bits are missing. Those will be provided shortly by a follow-on patch. This version of the patch incorporates feedback from reviews by Chris Lattner and Anton Korobeynikov. Thanks to all reviewers! Patch by Richard Sandiford. llvm-svn: 181203
-
Ulrich Weigand authored
[SystemZ] Define DWARF encoding This is another patch in preparation for adding the SystemZ target. It defines the appropriate values for DWARF encodings; the intent is to be compatible with what GCC currently does on the target. Patch by Richard Sandiford. llvm-svn: 181201
-
Ulrich Weigand authored
Simplify JIT unit test #ifdefs Several platforms need to disable all old-JIT unit tests, since they only support the new MCJIT. This currently done via #ifdef'ing out those tests in the ExecutionEngine/JIT/*.cpp files. As those #ifdef's have grown historically, we now have a number of repeated directives which -in total- cover nearly the whole file, but leave a couple of helper functions out. When building the tests with clang itself, those helper functions now cause spurious "unused function" warnings. To fix those warnings, and also to remove the duplicate #ifdef conditions and make it easier to disable the tests for a new target, this patch consolidates the #ifdefs into a single one per file, which covers all the tests including all helper routines. Tested on PowerPC and SystemZ. llvm-svn: 181200
-
Rafael Espindola authored
llvm-svn: 181195
-
Ulrich Weigand authored
[PowerPC] Fix memory corruption in AsmParser As pointed out by Evgeniy Stepanov, assigning a std::string temporary to a StringRef is not a good idea. Rework MatchRegisterName to avoid using the .lower routine. llvm-svn: 181192
-
Duncan Sands authored
llvm-svn: 181189
-
Michael Kuperstein authored
(Would sometimes optimize away conacts used to extend a vector with undef values) llvm-svn: 181186
-
Bill Wendling authored
pointers or not depending upon the function attributes. llvm-svn: 181180
-
Rafael Espindola authored
Looks like symbol resolution is not working on cygwin, the test fails because __gxx_personality_v0 is not found. llvm-svn: 181179
-
Nadav Rotem authored
llvm-svn: 181178
-
Nadav Rotem authored
Thanks Nick Lewycky for pointing this out. llvm-svn: 181177
-
Matt Arsenault authored
Use unknown results for places where it would be needed llvm-svn: 181176
-
Rafael Espindola authored
We used to disable constant merging not only if a constant is llvm.used, but also if an alias of a constant is llvm.used. This change fixes that. llvm-svn: 181175
-
Rafael Espindola authored
We currently have no way to register new eh frames on ARM. llvm-svn: 181172
-
- May 05, 2013
-
-
Rafael Espindola authored
llvm-svn: 181171
-
Rafael Espindola authored
It looks like eh uses an unimplemented relocation on pp64 llvm-svn: 181169
-
Rafael Espindola authored
llvm-svn: 181168
-
Rafael Espindola authored
This gets exception handling working on ELF and Macho (x86-64 at least). Other than the EH frame registration, this patch also implements support for GOT relocations which are used to locate the personality function on MachO. llvm-svn: 181167
-
-
Evan Cheng authored
indirect branch at the end of the BB. Otherwise if-converter, branch folding pass may incorrectly update its successor info if it consider BB as fallthrough to the next BB. rdar://13782395 llvm-svn: 181161
-
-
Benjamin Kramer authored
llvm-svn: 181157
-
Richard Osborne authored
Disassembler support has recently been added. Fill in some other unknowns at the same time. llvm-svn: 181156
-
Richard Osborne authored
With the change the disassembler now supports the XCore ISA in its entirety. llvm-svn: 181155
-
Richard Osborne authored
llvm-svn: 181154
-
Richard Osborne authored
No functionality change. llvm-svn: 181153
-
Richard Osborne authored
llvm-svn: 181152
-
Richard Osborne authored
Instead operands are treated as negative immediates where the sign bit is implicit in the instruction encoding. llvm-svn: 181151
-
Benjamin Kramer authored
No functionality change. llvm-svn: 181149
-
Stepan Dyatkovskiy authored
Now even the small structures could be passed within byval (small enough to be stored in GPRs). In regression tests next function prototypes are checked: PR15293: %artz = type { i32 } define void @foo(%artz* byval %s) define void @foo2(%artz* byval %s, i32 %p, %artz* byval %s2) foo: "s" stored in R0 foo2: "s" stored in R0, "s2" stored in R2. Next AAPCS rules are checked: 5.5 Parameters Passing, C.4 and C.5, "ParamSize" is parameter size in 32bit words: -- NSAA != 0, NCRN < R4 and NCRN+ParamSize > R4. Parameter should be sent to the stack; NCRN := R4. -- NSAA != 0, and NCRN < R4, NCRN+ParamSize < R4. Parameter stored in GPRs; NCRN += ParamSize. llvm-svn: 181148
-
Arnold Schwaighofer authored
llvm-svn: 181147
-
Arnold Schwaighofer authored
llvm-svn: 181146
-
David Majnemer authored
X86ISelLowering has support to treat: (icmp ne (and (xor %flags, -1), (shl 1, flag)), 0) as if it were actually: (icmp eq (and %flags, (shl 1, flag)), 0) However, r179386 has code at the InstCombine level to handle this. llvm-svn: 181145
-
Arnold Schwaighofer authored
Add support for min/max reductions when "no-nans-float-math" is enabled. This allows us to assume we have ordered floating point math and treat ordered and unordered predicates equally. radar://13723044 llvm-svn: 181144
-
Arnold Schwaighofer authored
Add support for matching 'ordered' and 'unordered' floating point min/max constructs. In LLVM we can express min/max functions as a combination of compare and select. We have support for matching such constructs for integers but not for floating point. In floating point math there is no total order because of the presence of 'NaN'. Therefore, we have to be careful to preserve the original fcmp semantics when interpreting floating point compare select combinations as a minimum or maximum function. The resulting 'ordered/unordered' floating point maximum function has to select the same value as the select/fcmp combination it is based on. ordered_max(x,y) = max(x,y) iff x and y are not NaN, y otherwise unordered_max(x,y) = max(x,y) iff x and y are not NaN, x otherwise ordered_min(x,y) = min(x,y) iff x and y are not NaN, y otherwise unordered_min(x,y) = min(x,y) iff x and y are not NaN, x otherwise This matches the behavior of the underlying select(fcmp(olt/ult/.., L, R), L, R) construct. Any code using this predicate has to preserve this semantics. A follow-up patch will use this to implement floating point min/max reductions in the vectorizer. radar://13723044 llvm-svn: 181143
-
Arnold Schwaighofer authored
No need for setting the operands. The pointers are going to be bound by the matcher. radar://13723044 llvm-svn: 181142
-