[LLVMbugs] [Bug 5773] New: Creating a JIT-ExecutionEngine overrides the CodeModel set by TargetMachine

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Dec 12 15:42:30 PST 2009


http://llvm.org/bugs/show_bug.cgi?id=5773

           Summary: Creating a JIT-ExecutionEngine overrides the CodeModel
                    set by TargetMachine
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: ebo at 4geeks.de
                CC: llvmbugs at cs.uiuc.edu


The constructor of X86TargetMachine sets the CodeModel from Default to Small on
x86_32 targets.

When creating a new ExecutionEngine via ExecutionEngine::create((ModuleProvider
*MP, bool ForceInterpreter=false, ...) this gets reset to Default by
ExecutionEngine::createJit.
The value is taken from EngineBuilder::CMModel, which gets initialized to
Default.
On this code path there is no way to influence this value.

X86FastISel only implements the Small code model and tests for cm ==
CodeModel::Small, thus fails even on 32bit.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list