[LLVMbugs] [Bug 9038] New: llvm/Target/TargetOptions.h should become an immutablepass

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 24 10:34:30 PST 2011


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

           Summary: llvm/Target/TargetOptions.h should become an
                    immutablepass
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu


llvm/Target/TargetOptions.h contains a bunch of global variables that affect
the code generator.  Global variables are obviously bad and prevent things like
running multiple different code generators on different threads etc.

While some of the individual flags can be refactored, a very reasonable right
short term solution for this is to make TargetOptions be an ImmutablePass that
codegen can "getAnalysis<>" on, and llc/clang etc can explicitly schedule it if
they want to fiddle with the flags.

-Chris

-- 
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