Displaying 2 results from an estimated 2 matches for "x86_16".
2014 Jan 06
3
[LLVMdev] Why do X86_32TargetMachine and X86_64TargetMachine classes exist?
...6TargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, false),
> > + : X86TargetMachine(T, TT, CPU, FS, Options, RM, CM, OL, Triple(TT).getArch())
>
> Think this is missing a "==Triple::x86_64” at the end, yes?
Nah, I turned that parameter into a Triple::ArchType so that I can pass
x86_16 as an option too. See the patch on llvm-commits which adds the
x86_16 target.
Currently working on a few codegen bugs with building the Linux kernel's
16-bit startup code with 'clang -m16'...
--
dwmw2
-------------- next part --------------
A non-text attachment was scrubbed...
Name:...
2014 Jan 06
2
[LLVMdev] Why do X86_32TargetMachine and X86_64TargetMachine classes exist?
...ng seems to have
broken AFAICT...
--- a/lib/Target/X86/X86TargetMachine.cpp
+++ b/lib/Target/X86/X86TargetMachine.cpp
@@ -24,8 +24,9 @@ using namespace llvm;
extern "C" void LLVMInitializeX86Target() {
// Register the target.
+ RegisterTargetMachine<X86_32TargetMachine> W(TheX86_16Target);
RegisterTargetMachine<X86_32TargetMachine> X(TheX86_32Target);
- RegisterTargetMachine<X86_64TargetMachine> Y(TheX86_64Target);
+ RegisterTargetMachine<X86_32TargetMachine> Y(TheX86_64Target);
}
@@ -74,7 +75,7 @@ X86_32TargetMachine::X86_32TargetMachine(const Target...