aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/SubtargetFeature.cpp
AgeCommit message (Collapse)AuthorFilesLines
2011-07-09Change createAsmParser to take a MCSubtargetInfo instead of triple,Evan Cheng1-0/+32
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-07Compute feature bits at time of MCSubtargetInfo initialization.Evan Cheng1-18/+22
llvm-svn: 134606
2011-07-01Eliminate one extra conversion.Evan Cheng1-1/+1
llvm-svn: 134240
2011-07-01Another misuse of StringRef. MSVC is very sensitive to that kind of error.Francois Pichet1-2/+2
llvm-svn: 134236
2011-07-01Fix use after free.Rafael Espindola1-1/+1
llvm-svn: 134234
2011-07-01Switch SubtargetFeatures from std::string to StringRef.Evan Cheng1-22/+19
llvm-svn: 134219
2011-06-30Fix the ridiculous SubtargetFeatures API where it implicitly expects CPU name toEvan Cheng1-41/+21
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-29Sink SubtargetFeature and TargetInstrItineraries (renamed ↵Evan Cheng1-0/+384
MCInstrItineraries) into MC. llvm-svn: 134049