Benjamin Kramer
a74129adad
Symbol hygiene: Make sure declarations and definitions match, make helper functions static.
...
llvm-svn: 166376
2012-10-20 12:53:26 +00:00
Craig Topper
54b69d4c0d
Remove template from function that is only used with one type after r165092.
...
llvm-svn: 165203
2012-10-04 05:18:31 +00:00
Craig Topper
85e7a40232
Remove unused function that used to get itineraries from SubTargetFeatures. This is done from MCSubTargetInfo these days.
...
llvm-svn: 165092
2012-10-03 06:26:11 +00:00
Manman Ren
49d684e1e2
Release build: guard dump functions with
...
"#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)"
No functional change. Update r163344.
llvm-svn: 163679
2012-09-12 05:06:18 +00:00
Manman Ren
c3366ccecb
Release build: guard dump functions with "ifndef NDEBUG"
...
No functional change.
llvm-svn: 163344
2012-09-06 19:55:56 +00:00
Roman Divacky
77198de4d6
Constify subtarget info properly so that we dont cast away the const in
...
the SubtargetInfoKV tables. Found by gcc48 -Wcast-qual.
llvm-svn: 163251
2012-09-05 21:43:57 +00:00
Jim Grosbach
dc1e36e9f5
Tidy up. Trailing whitespace.
...
llvm-svn: 156602
2012-05-11 01:41:30 +00:00
Benjamin Kramer
20baffb257
Replace (Lower|Upper)caseString in favor of StringRef's newest methods.
...
llvm-svn: 143891
2011-11-06 20:37:06 +00:00
Benjamin Kramer
cc863b2bb6
Let printf do the formatting instead aligning strings ourselves.
...
While at it, merge some format strings.
llvm-svn: 142140
2011-10-16 16:30:34 +00:00
Evan Cheng
91111d2706
Change createAsmParser to take a MCSubtargetInfo instead of triple,
...
CPU, and feature string. Parsing some asm directives can change
subtarget state (e.g. .code 16) and it must be reflected in other
modules (e.g. MCCodeEmitter). That is, the MCSubtargetInfo instance
must be shared.
llvm-svn: 134795
2011-07-09 05:47:46 +00:00
Evan Cheng
1a72add615
Compute feature bits at time of MCSubtargetInfo initialization.
...
llvm-svn: 134606
2011-07-07 07:07:08 +00:00
Evan Cheng
c88d6d402a
Eliminate one extra conversion.
...
llvm-svn: 134240
2011-07-01 16:59:30 +00:00
Francois Pichet
92da450ae7
Another misuse of StringRef. MSVC is very sensitive to that kind of error.
...
llvm-svn: 134236
2011-07-01 09:23:41 +00:00
Rafael Espindola
968af4fee2
Fix use after free.
...
llvm-svn: 134234
2011-07-01 04:40:50 +00:00
Evan Cheng
d8e27a584e
Switch SubtargetFeatures from std::string to StringRef.
...
llvm-svn: 134219
2011-07-01 00:23:10 +00:00
Evan Cheng
fe6e405e8c
Fix the ridiculous SubtargetFeatures API where it implicitly expects CPU name to
...
be the first encoded as the first feature. It then uses the CPU name to look up
features / scheduling itineray even though clients know full well the CPU name
being used to query these properties.
The fix is to just have the clients explictly pass the CPU name!
llvm-svn: 134127
2011-06-30 01:53:36 +00:00
Evan Cheng
8264e272a9
Sink SubtargetFeature and TargetInstrItineraries (renamed MCInstrItineraries) into MC.
...
llvm-svn: 134049
2011-06-29 01:14:12 +00:00