diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-11-15 08:22:03 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-11-15 08:22:03 +0000 |
| commit | efacb9ee420add47a1c439a4a522cd0be29e987a (patch) | |
| tree | 5145095a97d7c37fafbd1da8cf65400d73906721 /clang/lib/Checker/GRExprEngine.cpp | |
| parent | 8f4444d0031fce48a303ff3cba369ded93901d32 (diff) | |
| download | bcm5719-llvm-efacb9ee420add47a1c439a4a522cd0be29e987a.tar.gz bcm5719-llvm-efacb9ee420add47a1c439a4a522cd0be29e987a.zip | |
split out an encoder for memri operands, allowing a relocation to be plopped
into the immediate field. This allows us to encode stuff like this:
lbz r3, lo16(__ZL4init)(r4) ; globalopt.cpp:5
; encoding: [0x88,0x64,A,A]
; fixup A - offset: 0, value: lo16(__ZL4init), kind: fixup_ppc_lo16
stw r3, lo16(__ZL1s)(r5) ; globalopt.cpp:6
; encoding: [0x90,0x65,A,A]
; fixup A - offset: 0, value: lo16(__ZL1s), kind: fixup_ppc_lo16
With this, we should have a completely function MCCodeEmitter for PPC, wewt.
llvm-svn: 119134
Diffstat (limited to 'clang/lib/Checker/GRExprEngine.cpp')
0 files changed, 0 insertions, 0 deletions

