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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to