summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen/stdcall-fastcall.c
Commit message (Collapse)AuthorAgeFilesLines
* CHECK-LABEL-ify some code gen tests to improve diagnostic experience when ↵Stephen Lin2013-08-151-15/+15
| | | | | | tests fail. llvm-svn: 188447
* Update testcases due to Attribute sorting improvements.Bill Wendling2013-02-151-2/+2
| | | | llvm-svn: 175253
* Update the tests.Bill Wendling2013-01-311-2/+2
| | | | | | | This update coincides with r174110. That change ordered the attributes alphabetically. llvm-svn: 174111
* Add padding inreg registers to cause llvm to skip ecx when needed withRafael Espindola2012-10-241-2/+2
| | | | | | the x86_fastcallcc calling convention. llvm-svn: 166538
* Add inreg markers with the x86_fastcallcc calling convention.Rafael Espindola2012-10-241-0/+96
| | | | llvm-svn: 166537
* Allowing individual targets to determine whether a given calling convention ↵Aaron Ballman2012-10-021-1/+1
| | | | | | | | is allowed or ignored with warning. This allows for correct name mangling for x64 targets on Windows, which in turn allows for linking against the Win32 APIs. Fixes PR13782 llvm-svn: 165015
* ANSI C requires that a call to an unprototyped function type succeedJohn McCall2011-09-211-1/+1
| | | | | | | | | | | | | | | | | if the definition has a non-variadic prototype with compatible parameters. Therefore, the default rule for such calls must be to use a non-variadic convention. Achieve this by casting the callee to the function type with which it is required to be compatible, unless the target specifically opts out and insists that unprototyped calls should use the variadic rules. The only case of that I'm aware of is the x86-64 convention, which passes arguments the same way in both cases but also sets a small amount of extra information; here we seek to maintain compatibility with GCC, which does set this when calling an unprototyped function. Addresses PR10810 and PR10713. llvm-svn: 140241
* Add support for Microsoft's __thiscall, from Steven Watanabe!Douglas Gregor2010-05-181-13/+24
| | | | llvm-svn: 104026
* PR7117: Make sure we don't lose the calling convention for K&R-styleEli Friedman2010-05-171-0/+6
| | | | | | | definitions. llvm-svn: 103932
* Standardize the parsing of function type attributes in a way thatJohn McCall2010-02-051-4/+4
| | | | | | | | | | | | 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
* Convert this test to FileCheck instead of grepping LLVM IR.Charles Davis2010-02-051-2/+11
| | | | llvm-svn: 95428
* Now that we store calling conventions in the types, use them instead ofCharles Davis2010-02-051-2/+9
| | | | | | | getting the calling convention from the target function, which may or may not exist. Fixes PR5280. llvm-svn: 95399
* Update tests to use %clang_cc1 instead of 'clang-cc' or 'clang -cc1'.Daniel Dunbar2009-12-151-2/+2
| | | | | | | | | - This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
* Eliminate &&s in tests.Daniel Dunbar2009-11-081-1/+1
| | | | | | - 'for i in $(find . -type f); do sed -e 's#\(RUN:.*[^ ]\) *&& *$#\1#g' $i | FileUpdate $i; done', for the curious. llvm-svn: 86430
* MultiTestRunner: Validate '&&' at the end of RUN lines.Daniel Dunbar2009-07-251-1/+1
| | | | | | | | - This is just to normalize, these will go away soon hopefully. Added all the missing '&&'s that have crept in. :) llvm-svn: 77062
* Rename clang to clang-cc.Daniel Dunbar2009-03-241-2/+2
| | | | | | Tests and drivers updated, still need to shuffle dirs. llvm-svn: 67602
* Codegen support for fastcall & stdcall CC.Anton Korobeynikov2008-11-111-0/+17
Patch by Ilya Okonsky! llvm-svn: 59080
OpenPOWER on IntegriCloud