Tanya Lattner
3cdf542f5a
Remove llvm-upgrade and update tests.
...
llvm-svn: 47432
2008-02-21 07:42:26 +00:00
Chris Lattner
e86c91f5b2
Dan implemented one multiply issue. Replace it with another. :)
...
llvm-svn: 47431
2008-02-21 06:51:29 +00:00
Andrew Lenharth
95528943e9
Atomic op support. If any gcc test uses __sync builtins, it might start failing on archs that haven't implemented them yet
...
llvm-svn: 47430
2008-02-21 06:45:13 +00:00
Chris Lattner
3b418d8446
implement codegen support for sizeof(void), fixing PR2080.
...
llvm-svn: 47429
2008-02-21 05:45:29 +00:00
Chris Lattner
4da4f85090
Add support for matching mem operands. This fixes PR1133, patch by
...
Eli Friedman. This implements CodeGen/Generic/2008-02-20-MatchingMem.ll.
llvm-svn: 47428
2008-02-21 05:27:19 +00:00
Chris Lattner
59f18b4de6
testcase for PR1133
...
llvm-svn: 47427
2008-02-21 05:27:08 +00:00
Chris Lattner
83c93d5afd
Fix a (harmless) but where vregs were added to the used reg lists for
...
inline asms.
Fix PR2078 by marking aliases of registers used when a register is
marked used. This prevents EAX from being allocated when AX is listed
in the clobber set for the asm.
llvm-svn: 47426
2008-02-21 04:55:52 +00:00
Devang Patel
ad582fc34b
Let invoke return aggregate value.
...
llvm-svn: 47425
2008-02-21 02:14:01 +00:00
Devang Patel
1f00b535e1
Let function call return aggregate.
...
Now, we have very first multiple return value testcase!
llvm-svn: 47424
2008-02-21 01:54:02 +00:00
Chris Lattner
a2417c9d8b
add some semantic checks for address spaces.
...
llvm-svn: 47423
2008-02-21 01:42:41 +00:00
Devang Patel
c6f915e40d
Add -disable-output option.
...
llvm-svn: 47422
2008-02-21 01:41:25 +00:00
Chris Lattner
05d8cca8b6
add a fixme.
...
llvm-svn: 47421
2008-02-21 01:32:57 +00:00
Chris Lattner
788404f312
Collect and build and process type attributes on pointers. For
...
example, we can now correctly build the type for things like:
_AS1 float * _AS2 *B;
llvm-svn: 47420
2008-02-21 01:32:26 +00:00
Chris Lattner
ed71d60f4d
move some code, no other change.
...
llvm-svn: 47419
2008-02-21 01:08:11 +00:00
Chris Lattner
efedd9ec67
move type attribute processing into the creatively named ProcessTypeAttributes method.
...
llvm-svn: 47418
2008-02-21 01:07:18 +00:00
Chris Lattner
ee0d271819
Correctly handle address space qualifiers in declspecs. This
...
allows us to correctly handle stuff like:
_AS1 float *B;
and to reject stuff like:
_AS1 _AS2* x;
llvm-svn: 47417
2008-02-21 00:48:22 +00:00
Evan Cheng
911f6bd799
Clean up some spilling code using MachineRegisterInfo.
...
llvm-svn: 47416
2008-02-21 00:34:19 +00:00
Chris Lattner
556676a20b
move ConvertDeclSpecToType into Sema
...
llvm-svn: 47415
2008-02-20 23:53:49 +00:00
Chris Lattner
dcee3a9630
rename some methods.
...
llvm-svn: 47414
2008-02-20 23:25:22 +00:00
Chris Lattner
f179190206
Use getKind() in HandleDeclAttribute instead of decoding the string inline.
...
llvm-svn: 47413
2008-02-20 23:17:35 +00:00
Chris Lattner
f18c743222
add a method to AttributeList that converts an identifier to an enum.
...
llvm-svn: 47412
2008-02-20 23:14:47 +00:00
Devang Patel
fe988eba4b
XFAIL for now.
...
llvm-svn: 47411
2008-02-20 23:10:42 +00:00
Nate Begeman
7dd8e72de9
Tabs are the enemy
...
llvm-svn: 47410
2008-02-20 22:57:40 +00:00
Devang Patel
b2aa6fe905
Now functions can return aggregate values.
...
llvm-svn: 47409
2008-02-20 22:51:28 +00:00
Devang Patel
8a24fa68ad
regenerate.
...
llvm-svn: 47408
2008-02-20 22:40:23 +00:00
Devang Patel
bd254045d0
Parse
...
ret i32 1, i8 2
another step towards multiple return value support.
llvm-svn: 47407
2008-02-20 22:39:45 +00:00
Devang Patel
616f0e02be
What if functions can return aggregate values ?
...
One small step towards multiple return value support.
llvm-svn: 47406
2008-02-20 22:36:03 +00:00
Chris Lattner
dba738e740
add some code that will be used to remove processed attrs from
...
declspec, it is currently nonfunctional though.
llvm-svn: 47405
2008-02-20 22:04:11 +00:00
Chris Lattner
19d8a38861
Change ConvertDeclSpecToType to break out of switch instead of
...
returning directly. This allows us to factor handling of _Complex.
llvm-svn: 47404
2008-02-20 21:40:32 +00:00
Dale Johannesen
c3706fcfb8
Regenerated files.
...
llvm-svn: 47402
2008-02-20 21:15:43 +00:00
Dale Johannesen
965155affb
Support alignment within ParamAttrs in the I/O handling.
...
llvm-svn: 47401
2008-02-20 21:15:19 +00:00
Evan Cheng
b6b69208ba
Poorly named option.
...
llvm-svn: 47400
2008-02-20 20:57:32 +00:00
Bill Wendling
eac9e5ef21
Remove one of the fixmes that I put in there. From Evan:
...
No need to go up more levels. A def of a register also sets its sub-registers
(so if PhysRegInfo[SuperReg] is NULL, it means SuperReg's super registers are
not previously defined).
llvm-svn: 47399
2008-02-20 20:56:45 +00:00
Chris Lattner
445fcabff7
Alternate address spaces work:
...
rename QualType::getQualifiers to getCVRQualifiers.
Add some fixme's and clean up some code relevant to qualifiers.
Change ASQualType to contain a Type* instead of a QualType.
Any CVR qualifiers should be on the outer qual type.
llvm-svn: 47398
2008-02-20 20:55:12 +00:00
Anton Korobeynikov
1872ad9888
Add convenient helper to get suffix of the file
...
llvm-svn: 47397
2008-02-20 19:41:22 +00:00
Devang Patel
cf193b8320
getresult does not support nested aggregates.
...
llvm-svn: 47396
2008-02-20 19:39:41 +00:00
Bill Wendling
cf2d1aa485
Improve some comments explaining the "handle kills" stuff better.
...
llvm-svn: 47395
2008-02-20 19:35:34 +00:00
Devang Patel
6b30fd310d
Verifier should use Assert1 instead of assert.
...
llvm-svn: 47394
2008-02-20 19:32:20 +00:00
Dan Gohman
2c61d2c503
Remove inline keywords from in-class function definitions, for
...
consistency.
llvm-svn: 47393
2008-02-20 19:29:58 +00:00
Devang Patel
dcad9da0bc
getresult type is the type of indexed aggregate element
...
llvm-svn: 47392
2008-02-20 19:26:55 +00:00
Devang Patel
949173da7f
Regenerate.
...
llvm-svn: 47391
2008-02-20 19:13:10 +00:00
Devang Patel
666d45195a
Specify GetResultInst index as an unsigned.
...
llvm-svn: 47390
2008-02-20 19:10:47 +00:00
Bill Wendling
0b72219681
Fix comment.
...
llvm-svn: 47389
2008-02-20 19:09:14 +00:00
Devang Patel
57b4eedad9
assert is more effective reminder then FIXME tag for unimplemented features.
...
llvm-svn: 47388
2008-02-20 18:37:40 +00:00
Devang Patel
3ef1b793c1
Use isValidOperands() to verify GetResultInst.
...
llvm-svn: 47387
2008-02-20 18:36:46 +00:00
Devang Patel
490760380c
Fix typo. Add const version of getAggregateValue() accessor member function.
...
llvm-svn: 47386
2008-02-20 18:36:16 +00:00
Evan Cheng
e43b6054b1
Temporarily backing out r47337. It breaks a number of CBE tests.
...
llvm-svn: 47385
2008-02-20 18:32:05 +00:00
Duncan Sands
e7b462b329
LegalizeTypes support for scalarizing a vector store
...
and splitting extract_subvector. This fixes nine
"make check" testcases, for example
2008-02-04-ExtractSubvector.ll and (partially)
CodeGen/Generic/vector.ll.
llvm-svn: 47384
2008-02-20 17:38:09 +00:00
Dan Gohman
34fc7dbf5b
Convert Legalize to use the APInt form of ComputeMaskedBits.
...
llvm-svn: 47383
2008-02-20 16:57:27 +00:00
Dan Gohman
360c86aed5
Add explicit keywords.
...
llvm-svn: 47382
2008-02-20 16:44:09 +00:00