summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
Commit message (Collapse)AuthorAgeFilesLines
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-041-5/+7
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100305
* Avoid unneeded calls to opt/llvm-dis.Daniel Dunbar2010-04-022-3/+3
| | | | llvm-svn: 100236
* Merge several tests into switch.c.Daniel Dunbar2010-04-026-88/+94
| | | | llvm-svn: 100235
* Revert r100193 since it causes failures in objc in clangMon P Wang2010-04-021-7/+5
| | | | llvm-svn: 100200
* Reapply patch for adding support for address spaces and added a isVolatile ↵Mon P Wang2010-04-021-5/+7
| | | | | | field to memcpy, memmove, and memset. llvm-svn: 100193
* Slightly relax test case. An upcoming LLVM commit will change the xor ↵Jakob Stoklund Olesen2010-03-301-1/+1
| | | | | | instruction. llvm-svn: 99962
* Fix test in -Asserts build.Daniel Dunbar2010-03-301-1/+1
| | | | llvm-svn: 99960
* Revert Mon Ping's 99930 due to broken llvm-gcc buildbots.Bob Wilson2010-03-301-7/+5
| | | | llvm-svn: 99949
* Remember the regparm attribute in FunctionType::ExtInfo.Rafael Espindola2010-03-301-2/+6
| | | | | | Fixes PR3782. llvm-svn: 99940
* Fix this test on windows. When running on windows we printRafael Espindola2010-03-301-1/+1
| | | | | | | | double 0.000000e+000 instead of double 0.000000e+00 llvm-svn: 99932
* Added support for address spaces and added a isVolatile field to memcpy, ↵Mon P Wang2010-03-301-5/+7
| | | | | | memmove, and memset llvm-svn: 99930
* the big refactoring bits of PR3782.Rafael Espindola2010-03-301-1/+2
| | | | | | | | This introduces FunctionType::ExtInfo to hold the calling convention and the noreturn attribute. The next patch will extend it to include the regparm attribute and fix the bug. llvm-svn: 99920
* When mapping restrict to noalias, look for 'restrict' on the parameter variableJohn McCall2010-03-271-0/+26
| | | | | | | instead of the canonical parameter type (which has correctly dropped all such direct qualifiers). Fixes PR6695. llvm-svn: 99688
* Implement new mangling for vectors.Nick Lewycky2010-03-261-0/+4
| | | | llvm-svn: 99616
* Remove support for nand atomic builtins. They are inconsistently implemented inDaniel Dunbar2010-03-251-4/+2
| | | | | | | gcc, and the common expectation seems to be that they are unused. If and when someone cares we can add them back with well documented demantics. llvm-svn: 99522
* IRgen: Wrap atomic intrinsics with memory barriers, to ensure we honor the ↵Daniel Dunbar2010-03-201-0/+1
| | | | | | | | semantics. - This should be conservatively correct, we eventually should have target hooks for platforms that are less strict. llvm-svn: 99050
* Evaluate: Fix a subtle bug in the pointer evaluator in which we would do anDaniel Dunbar2010-03-201-0/+8
| | | | | | | | expression computation in the wrong bit-width, and end up generating a totally bogus array reference (_g0+8589934546). - This showed up on Prolangs/cdecl. llvm-svn: 99042
* fix PR6433, crash on va_arg of typedef.Chris Lattner2010-03-111-0/+11
| | | | llvm-svn: 98264
* Fix file reference for derived and composite types. Now, dwarf writer uses ↵Devang Patel2010-03-091-0/+2
| | | | | | strict verifier that ignores debug info for such types if their file info is unknown. llvm-svn: 98096
* add a codegen hack to work around an AST bug, allowing us to compile theChris Lattner2010-03-081-0/+11
| | | | | | code in PR6537. This should be reverted when the ast bug is fixed. llvm-svn: 97981
* PR6515: Implement __builtin_signbit and friends.Eli Friedman2010-03-061-0/+1
| | | | | | | I'm reasonably sure my implementation is correct, but it would be nice if someone could double-check. llvm-svn: 97864
* Remove header file dependencies in block patchFariborz Jahanian2010-03-051-8/+4
| | | | | | test case. llvm-svn: 97777
* add support for a 1<<29 bit in the block flags field to mark blocks using ↵Blaine Garst2010-03-051-0/+110
| | | | | | alternate struct return ABI llvm-svn: 97775
* really fix 6473 by handling weakref in constant expressions.Rafael Espindola2010-03-041-0/+8
| | | | llvm-svn: 97750
* Fix PR6473.Rafael Espindola2010-03-043-6/+108
| | | | | | | | | Clang's support for weakref is now better than llvm-gcc's :-) We don't introduce a new symbol and we correctly mark undefined references weak only if there is no definition or regular undefined references in the same file. llvm-svn: 97733
* Revert changes r97693, r97700, and r97718.John McCall2010-03-047-19/+0
| | | | | | Our testing framework can't deal with disabled targets yet. llvm-svn: 97719
* XFAIL these tests on win32, since the win32 buildbot apparently disables allJohn McCall2010-03-046-0/+12
| | | | | | targets except X86. llvm-svn: 97718
* Fix __builtin_ia32_roundss and __builtin_ia32_roundsd definitions.Eric Christopher2010-03-041-2/+2
| | | | | | Re-enable test. llvm-svn: 97707
* Implement __builtin_dwarf_sp_column().John McCall2010-03-041-0/+7
| | | | llvm-svn: 97700
* fix a buildbot failure, this was passing for me because the Chris Lattner2010-03-041-3/+7
| | | | | | '%t' file was left around on my disk. doh. llvm-svn: 97699
* merge asm-2.c into asm.c, remove asm-inout.c because it is Chris Lattner2010-03-033-28/+11
| | | | | | XFAIL and already tracked in bugzilla. llvm-svn: 97671
* fix PR6475, we were doing side-effecting stuff in an assert.Chris Lattner2010-03-031-1/+11
| | | | llvm-svn: 97669
* add framework for ARM builtins, Patch by Edmund Grimley Evans!Chris Lattner2010-03-031-0/+6
| | | | llvm-svn: 97656
* Support constant-evaluation of __builtin_nans* as well as the correct constantJohn McCall2010-02-281-3/+42
| | | | | | | | evaluation of __builtin_nan*. Most of the work to make this work is in LLVM. Fixes <rdar://problem/7696712> and part of PR 5255. llvm-svn: 97383
* Make this test portable to ABIs that use sret.John McCall2010-02-241-1/+1
| | | | llvm-svn: 97035
* Fix test case and convert fully to FileCheck.John McCall2010-02-241-6/+6
| | | | llvm-svn: 97032
* Canonicalize parameter and return types before computing ABI info. EliminatesJohn McCall2010-02-241-1/+10
| | | | | | | | | | | a common source of oddities and, in theory, removes some redundant ABI computations. Also fixes a miscompile I introduced yesterday by refactoring some code and causing a slightly different code path to be taken that didn't perform *parameter* type canonicalization, just normal type canonicalization; this in turn caused a bit of ABI code to misfire because it was looking for 'double' or 'float' but received 'const float'. llvm-svn: 97030
* Emit debug info for VectorType.Devang Patel2010-02-231-0/+9
| | | | llvm-svn: 96999
* fix buildbot failure on windows by slightly trimming test output to ignore ↵Blaine Garst2010-02-231-2/+2
| | | | | | temporary name llvm-svn: 96998
* Add support for the weakref attribute. We still produce "alias weak" as ↵Rafael Espindola2010-02-231-0/+6
| | | | | | llvm-gcc does, but are more strict on what uses of weakref we accept. llvm-svn: 96992
* Unconditionally support block introspection data in a new field at the endBlaine Garst2010-02-231-0/+94
| | | | | | | | | | | | | | | of the block descriptor field. This field is the ObjC style @encode signature of the implementation function, and was to this point conditionally provided in the block literal data structure. That provisional support is removed. Additionally, eliminate unused enumerations for the block literal flags field. The first shipping ABI unconditionally set (1<<29) but this bit is unused by the runtime, so the second ABI will unconditionally have (1<<30) set so that the runtime can in fact distinguish whether the additional data is present or not. llvm-svn: 96989
* PR6386: Fix a recent regression in IRGen of cast-to-union constructs.Eli Friedman2010-02-231-0/+12
| | | | llvm-svn: 96958
* Allow redefinitions of extern inline functions in GNU89 mode, just as GCCCharles Davis2010-02-181-0/+25
| | | | | | does. Fixes PR5253. llvm-svn: 96553
* Distinguish two lexical blocks at the same level.Devang Patel2010-02-161-0/+18
| | | | llvm-svn: 96397
* dllimport and dllexport are declspec attributes, too. They're alsoCharles Davis2010-02-161-3/+8
| | | | | | | | Win32-specific. Also, fix a test to use FileCheck instead of grepping LLVM IR. llvm-svn: 96364
* Use getLocStart(), instead of getLocEnd(), to record starting location of ↵Devang Patel2010-02-151-0/+15
| | | | | | objc method. :) llvm-svn: 96245
* Emit the 'alignstack' LLVM function attribute when we encounter a functionCharles Davis2010-02-131-0/+8
| | | | | | | marked 'force_align_arg_pointer'. Almost there; now all I need to do is finish up the backend. llvm-svn: 96100
* Use current location as the location of compiler generated arguments, e.g. ↵Devang Patel2010-02-101-0/+14
| | | | | | self, _cmd etc. llvm-svn: 95743
* IRgen: Add CreateMemTemp, for creating an temporary memory object for a ↵Daniel Dunbar2010-02-091-2/+2
| | | | | | | | | | particular type, and flood fill. - CreateMemTemp sets the alignment on the alloca correctly, which fixes a great many places in IRgen where we were doing the wrong thing. - This fixes many many more places than the test case, but my feeling is we need to audit alignment systematically so I'm not inclined to try hard to test the individual fixes in this patch. If this bothers you, patches welcome! PR6240. llvm-svn: 95648
* Standardize the parsing of function type attributes in a way thatJohn McCall2010-02-052-4/+11
| | | | | | | | | | | | follows (as conservatively as possible) gcc's current behavior: attributes written on return types that don't apply there are applied to the function instead, etc. Only parse CC attributes as type attributes, not as decl attributes; don't accepet noreturn as a decl attribute on ValueDecls, either (it still needs to apply to other decls, like blocks). Consistently consume CC/noreturn information throughout codegen; enforce this by removing their default values in CodeGenTypes::getFunctionInfo(). llvm-svn: 95436
OpenPOWER on IntegriCloud