diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-08-27 08:12:55 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-08-27 08:12:55 +0000 |
commit | 981a71c3028d8995855c23f5b784a3cb44fce1cf (patch) | |
tree | cbf2e64a3a60e632fafbf06b41381b4db22d83f4 /llvm/lib/Target/X86/X86TargetMachine.cpp | |
parent | c4f0e7e28de2408194fc3d9ba131500bbb8fbfce (diff) | |
download | bcm5719-llvm-981a71c3028d8995855c23f5b784a3cb44fce1cf.tar.gz bcm5719-llvm-981a71c3028d8995855c23f5b784a3cb44fce1cf.zip |
llvm-mc/X86: Implement single instruction encoding interface for MC.
- Note, this is a gigantic hack, with the sole purpose of unblocking further
work on the assembler (its also possible to test the mathcer more completely
now).
- Despite being a hack, its actually good enough to work over all of 403.gcc
(although some encodings are probably incorrect). This is a testament to the
beauty of X86's MachineInstr, no doubt! ;)
llvm-svn: 80234
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86TargetMachine.cpp b/llvm/lib/Target/X86/X86TargetMachine.cpp index 4651f462a5d..a61de1cd182 100644 --- a/llvm/lib/Target/X86/X86TargetMachine.cpp +++ b/llvm/lib/Target/X86/X86TargetMachine.cpp @@ -47,6 +47,10 @@ extern "C" void LLVMInitializeX86Target() { // Register the target asm info. RegisterAsmInfoFn A(TheX86_32Target, createMCAsmInfo); RegisterAsmInfoFn B(TheX86_64Target, createMCAsmInfo); + + // Register the code emitter. + TargetRegistry::RegisterCodeEmitter(TheX86_32Target, createX86MCCodeEmitter); + TargetRegistry::RegisterCodeEmitter(TheX86_64Target, createX86MCCodeEmitter); } |