- Jul 31, 2009
-
-
Chris Lattner authored
initialize method, which can be called when an MCContext is available. llvm-svn: 77687
-
Benjamin Kramer authored
llvm-svn: 77673
-
Daniel Dunbar authored
- This is "experimental" code, I am feeling my way around and working out the best way to do things (and learning tblgen in the process). Comments welcome, but keep in mind this stuff will change radically. - This is enough to match "subb" and friends, but not much else. The next step is to automatically generate the matchers for individual operands. llvm-svn: 77657
-
- Jul 30, 2009
-
-
Dan Gohman authored
llvm-svn: 77602
-
Dan Gohman authored
classes. And define its SubRegClassList. llvm-svn: 77601
-
Evan Cheng authored
llvm-svn: 77584
-
Evan Cheng authored
Optimize some common usage patterns of atomic built-ins __sync_add_and_fetch() and __sync_sub_and_fetch. When the return value is not used (i.e. only care about the value in the memory), x86 does not have to use add to implement these. Instead, it can use add, sub, inc, dec instructions with the "lock" prefix. This is currently implemented using a bit of instruction selection trick. The issue is the target independent pattern produces one output and a chain and we want to map it into one that just output a chain. The current trick is to select it into a merge_values with the first definition being an implicit_def. The proper solution is to add new ISD opcodes for the no-output variant. DAG combiner can then transform the node before it gets to target node selection. Problem #2 is we are adding a whole bunch of x86 atomic instructions when in fact these instructions are identical to the non-lock versions. We need a way to add target specific information to target nodes and have this information carried over to machine instructions. Asm printer (or JIT) can use this information to add the "lock" prefix. llvm-svn: 77582
-
Dan Gohman authored
due to x86 encoding restrictions. This is currently off by default because it may cause code quality regressions. This is for PR4572. llvm-svn: 77565
-
Dan Gohman authored
llvm-svn: 77558
-
Dan Gohman authored
llvm-svn: 77553
-
- Jul 29, 2009
-
-
Chris Lattner authored
and convert code to using it, instead of having lots of things poke the isLookupPtrRegClass() method directly. 2. Make PointerLikeRegClass contain a 'kind' int, and store it in the existing regclass field of TargetOperandInfo when the isLookupPtrRegClass() predicate is set. Make getRegClass pass this into TargetRegisterInfo::getPointerRegClass(), allowing targets to have multiple ptr_rc things. llvm-svn: 77504
-
Chris Lattner authored
support multiple different pointer register classes. llvm-svn: 77501
-
Eric Christopher authored
llvm-svn: 77480
-
Chris Lattner authored
llvm-svn: 77442
-
Chris Lattner authored
llvm-svn: 77441
-
Chris Lattner authored
llvm-svn: 77438
-
Chris Lattner authored
No functionality change. llvm-svn: 77432
-
Eric Christopher authored
llvm-svn: 77415
-
Bill Wendling authored
Leopard. llvm-svn: 77414
-
Eric Christopher authored
to ptest instruction plus setcc. Revamp ptest instruction. Add test. llvm-svn: 77407
-
Daniel Dunbar authored
llvm-svn: 77404
-
Daniel Dunbar authored
llvm-svn: 77384
-
- Jul 28, 2009
-
-
Bill Wendling authored
dealing with Data. llvm-svn: 77372
-
Devang Patel authored
New name is Metadata.h. llvm-svn: 77370
-
Owen Anderson authored
llvm-svn: 77366
-
Daniel Dunbar authored
llvm-svn: 77362
-
Chris Lattner authored
mode, and "ld64" (the default linker) falls back to it in -static mode. llvm-svn: 77334
-
Chris Lattner authored
it is highly specific to the object file that will be generated in the end, this introduces a new TargetLoweringObjectFile interface that is implemented for each of ELF/MachO/COFF/Alpha/PIC16 and XCore. Though still is still a brutal and ugly refactoring, this is a major step towards goodness. This patch also: 1. fixes a bunch of dangling pointer problems in the PIC16 backend. 2. disables the TargetLowering copy ctor which PIC16 was accidentally using. 3. gets us closer to xcore having its own crazy target section flags and pic16 not having to shadow sections with its own objects. 4. fixes wierdness where ELF targets would set CStringSection but not CStringSection_. Factor the code better. 5. fixes some bugs in string lowering on ELF targets. llvm-svn: 77294
-
- Jul 27, 2009
-
-
Daniel Dunbar authored
- My DFS traversal of LLVM is, at least for now, nearly complete! :) llvm-svn: 77258
-
Chris Lattner authored
MCSections soon instead of Section for all targets, and we need something to own them. llvm-svn: 77252
-
Owen Anderson authored
llvm-svn: 77247
-
Chris Lattner authored
header even though there is only one COFF target. llvm-svn: 77204
-
Chris Lattner authored
llvm-svn: 77197
-
Chris Lattner authored
llvm-svn: 77191
-
Chris Lattner authored
instead. llvm-svn: 77186
-
Chris Lattner authored
instead and drive things based off of that. llvm-svn: 77184
-
- Jul 26, 2009
-
-
Chris Lattner authored
'unnamed' bss section, but some impls would want a named one. Since they don't have consistent behavior, just make each target do their own thing, instead of doing something "sortof common" then having targets change immutable objects later. llvm-svn: 77165
-
Daniel Dunbar authored
llvm-svn: 77145
-
Chris Lattner authored
just use a smallstring instead. llvm-svn: 77144
-
Chris Lattner authored
llvm-svn: 77138
-