Steve Naroff
da44a40b64
Remove default argument, since it isn't being used (suggested by Fariborz).
...
llvm-svn: 75815
2009-07-15 19:34:04 +00:00
Argyrios Kyrtzidis
4b415acff6
Revert r75764 "[llvm up] Switch to using the new TargetRegistry" to fix build.
...
llvm-svn: 75814
2009-07-15 18:59:48 +00:00
Argyrios Kyrtzidis
ed53caebda
Add comments to indicate why RUN lines are below the source code.
...
llvm-svn: 75813
2009-07-15 18:59:40 +00:00
Steve Naroff
8206de760b
Add a "t".
...
llvm-svn: 75810
2009-07-15 18:50:21 +00:00
Dan Gohman
98ef2852ab
Apparently Darwin doesn't have /dev/full :-(.
...
llvm-svn: 75809
2009-07-15 18:41:11 +00:00
Steve Naroff
1329fa0ed9
Implement the ObjC pseudo built-in types as clang "BuiltinType's". I say pseudo built-in types, since Sema still injects a typedef for recognition (i.e. they aren't truly built-ins from a parser perspective).
...
This removes the static data/methods on ObjCObjectPointerType while preserving the nice API (no need to fiddle with ASTContext:-).
This patch also adds Type::isObjCBuiltinType().
This should be the last fairly large patch related to recrafting the ObjC type system. The follow-on patches should be fairly small.
llvm-svn: 75808
2009-07-15 18:40:39 +00:00
Stuart Hastings
850f8e4266
Restore file lost during reversion.
...
llvm-svn: 75807
2009-07-15 18:30:44 +00:00
David Greene
11817374de
Get rid of postInstructionAction and call EmitComments directly.
...
llvm-svn: 75806
2009-07-15 18:24:03 +00:00
Rafael Espindola
f5d53d46b9
Revert 75798 to fix llvm build.
...
llvm-svn: 75805
2009-07-15 17:40:42 +00:00
Dan Gohman
4833feb399
Fix a typo in a comment that Duncan noticed.
...
llvm-svn: 75804
2009-07-15 17:38:23 +00:00
Dan Gohman
46f574ac97
Fix a thinko in a comment that Duncan spotted.
...
llvm-svn: 75803
2009-07-15 17:34:43 +00:00
Dan Gohman
74e3eb49ea
Update for raw_fd_ostream API changes. raw_fd_ostream now has a
...
Force flag to control whether the case of opening an existing
file is considered an error.
llvm-svn: 75802
2009-07-15 17:32:18 +00:00
Dan Gohman
607818a2c1
Add a Force option to raw_fd_ostream to specify whether opening
...
an existing file is considered an error. Convert several tools
to use raw_fd_ostream instead of std::ostream, and to use this
new option instead of doing a manual check.
llvm-svn: 75801
2009-07-15 17:29:42 +00:00
Stuart Hastings
338191cd67
Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair broken LLVM-GCC build.
...
Will revert 75770 in the llvm-gcc trunk.
llvm-svn: 75799
2009-07-15 17:27:11 +00:00
Duncan Sands
c5928d2fad
The static function TypeToFloatSemantics is now
...
unused - remove it.
llvm-svn: 75798
2009-07-15 17:19:24 +00:00
Richard Osborne
a8edd048c2
Fix pattern for LD16S_3r, add basic tests to check load / store instructions
...
are being properly selected.
llvm-svn: 75797
2009-07-15 17:06:59 +00:00
Dan Gohman
6935332d5f
Add a raw_ostream version of CheckBitcodeOutputToConsole.
...
llvm-svn: 75796
2009-07-15 17:04:50 +00:00
Dan Gohman
56ba398889
Add a testcase for raw_ostream error checking.
...
llvm-svn: 75795
2009-07-15 16:47:02 +00:00
Dan Gohman
2d6b047463
Add a comment noting that raw_os_ostream does not check for errors.
...
llvm-svn: 75794
2009-07-15 16:45:52 +00:00
Dan Gohman
213e87b1fe
Check for errors on close(2) too. And lseek(2).
...
llvm-svn: 75793
2009-07-15 16:43:01 +00:00
Dan Gohman
33fb640835
Use 0664 instead of 0644 for the default open mode. This is
...
consistent with common std::ostream implmentations, and it gives
the user the option of using the umask group write bit.
llvm-svn: 75792
2009-07-15 16:39:40 +00:00
Dan Gohman
d8db376071
Use errs() instead of std::cerr.
...
llvm-svn: 75791
2009-07-15 16:35:29 +00:00
Dan Gohman
c1dd25da31
Add a raw_ostream operator<< to sys::Path.
...
llvm-svn: 75790
2009-07-15 16:33:33 +00:00
David Goodwin
f39120571b
Thumb-2 only support [base_reg + offset_reg] addressing, not [base_reg - offset_reg].
...
llvm-svn: 75789
2009-07-15 15:50:19 +00:00
Richard Osborne
57489b0658
Fix XCoreTargetLowering::isLegalAddressingMode to handle non simple VTs.
...
llvm-svn: 75788
2009-07-15 15:46:56 +00:00
Richard Osborne
c50a460296
Remove the xcore-file-directive option now that LLVM has proper support for
...
emitting file directives with one parameter.
llvm-svn: 75787
2009-07-15 15:36:37 +00:00
Kevin Enderby
09ea5709a2
Added llvm-mc support for parsing the .dump and .load directives.
...
llvm-svn: 75786
2009-07-15 15:30:11 +00:00
Duncan Sands
9ad1594fe0
Remove the v3i32 and v3f32 value types: they are not
...
native for any supported targets.
llvm-svn: 75785
2009-07-15 15:28:52 +00:00
Xerxes Ranby
b871813cc9
Added myself to the blame list.
...
llvm-svn: 75783
2009-07-15 13:01:49 +00:00
Daniel Dunbar
eb8c83b4c3
Replace large swaths of copy-n-paste code with obvious helper function...
...
- Which was already present in the module!
- I skipped this xform for Alpha, since it runs an extra pass during assembly
emission, but not when emitting assembly via the DumpAsm flag.
- No functionality change.
--
ddunbar@giles:llvm$ svn diff | grep '^- ' | sort | uniq -c
18 - PM.add(AsmPrinterCtor(ferrs(), *this, true));
18 - assert(AsmPrinterCtor && "AsmPrinter was not linked in");
18 - if (AsmPrinterCtor)
18 - if (DumpAsm) {
18 - }
ddunbar@giles:llvm$ svn diff | grep '^+ ' | sort | uniq -c
18 + addAssemblyEmitter(PM, OptLevel, true, ferrs());
18 + if (DumpAsm)
--
llvm-svn: 75782
2009-07-15 12:49:15 +00:00
Duncan Sands
cf5b0f4155
Remove StringConstantPrefix now that the only user
...
(llvm-gcc) has gone.
llvm-svn: 75781
2009-07-15 12:39:48 +00:00
Daniel Dunbar
863e587d27
Kill off old (TargetMachine level, not Target level) match quality functions.
...
llvm-svn: 75780
2009-07-15 12:26:05 +00:00
Xerxes Ranby
9dbdf228d0
Fix cmake build lib/Target/TargetMachineRegistry.cpp removed.
...
llvm-svn: 75779
2009-07-15 12:19:36 +00:00
Daniel Dunbar
6db8134e80
Provide TargetMachine implementations with reference to Target they were created
...
from.
- This commit is almost entirely propogating the reference through the
TargetMachine subclasses' constructor calls.
llvm-svn: 75778
2009-07-15 12:11:05 +00:00
Duncan Sands
2d8c9aeed7
String constants are now output with private linkage.
...
llvm-svn: 75777
2009-07-15 12:09:18 +00:00
Daniel Dunbar
fa8c85d909
Tweak svn:ignore
...
llvm-svn: 75775
2009-07-15 11:49:25 +00:00
Daniel Dunbar
88f8559261
Kill off unused TargetMachineRegistry methods and ivars.
...
llvm-svn: 75774
2009-07-15 11:48:36 +00:00
Daniel Dunbar
5eb9700578
Migrate llc and the JIT to using the TargetRegistry for lookups.
...
- They still use the TargetMachineRegistry to populate the contents of the
-march option (via the listener interface). We can't just populate it in the
option parser because we can't expect the TargetRegistry to be populated yet
(we no longer rely on static constructors).
- There are a couple ways to finish killing off TargetMachineRegistry, but I
haven't figured out the cleanest one yet...
llvm-svn: 75773
2009-07-15 11:36:15 +00:00
Daniel Dunbar
95b534f80e
Include the Target& in the TargetMachineRegisterEntry.
...
llvm-svn: 75772
2009-07-15 11:23:49 +00:00
Daniel Dunbar
50859c907a
Allow multiple registrations of the same target.
...
- This doesn't necessarily seem like a good idea, but the JIT unittest
currently relies on it.
llvm-svn: 75769
2009-07-15 10:32:44 +00:00
Daniel Dunbar
81fed34d80
Initialize the target info via the InitializeNativeTarget() hook.
...
llvm-svn: 75768
2009-07-15 10:29:55 +00:00
Daniel Dunbar
a8d73996ce
Switch some obvious clients to using the new TargetRegistry.
...
llvm-svn: 75767
2009-07-15 10:05:03 +00:00
Daniel Dunbar
776fe8db5f
Reimplement TargetMachineRegistry in terms of TargetRegistry.
...
- This is a temporary hack to aid in incremental refactoring, for now we
allocate a new TargetMachineRegistryEntry on every getClosest... call.
- No intended functionality change, other than the leaked memory.
llvm-svn: 75766
2009-07-15 09:53:37 +00:00
Daniel Dunbar
39d2781b04
Tweak svn:ignore
...
llvm-svn: 75765
2009-07-15 09:45:29 +00:00
Daniel Dunbar
3d038dd33d
[llvm up] Switch to using the new TargetRegistry.
...
llvm-svn: 75764
2009-07-15 09:43:46 +00:00
Daniel Dunbar
7acc27f7c5
Mark Target's creation routines as const.
...
llvm-svn: 75763
2009-07-15 09:38:10 +00:00
Daniel Dunbar
b22f50e4c4
Register Target's TargetMachine and AsmPrinter in the new registry.
...
- This abuses TargetMachineRegistry's constructor for now, this will get
cleaned up in time.
llvm-svn: 75762
2009-07-15 09:22:31 +00:00
Zhongxing Xu
69cc15e97f
Delete extra whitespaces.
...
llvm-svn: 75761
2009-07-15 09:04:01 +00:00
Daniel Dunbar
f47d8300f8
Fix thinko
...
llvm-svn: 75760
2009-07-15 08:56:49 +00:00
Daniel Dunbar
77ac4b8944
Tweak svn:ignore
...
llvm-svn: 75759
2009-07-15 08:20:44 +00:00