Skip to content
  1. Jul 16, 2009
    • Daniel Dunbar's avatar
      Add registered target list to --version output. · 78c8fb10
      Daniel Dunbar authored
      llvm-svn: 75889
      78c8fb10
    • Dan Gohman's avatar
      Change raw_ostream so that it doesn't call llvm_report_error · 58fcef91
      Dan Gohman authored
      immediately on every output error. Instead, add a flag to
      raw_ostream, and set the flag whenever an error is detected.
      
      The flag can be queried and cleared from the public API. This
      gives applications more flexibility to handling errors in
      application-specific ways.
      
      If the flag is not cleared when the raw_ostream is destructed,
      llvm_report_error is called from the destructor. This ensures
      that errors are not implicitly silenced, and provides
      convenient default behavior for tools like llc and opt.
      Clients wishing to avoid llvm_report_error calls from
      raw_ostream should check for errors and clear the error flag.
      
      llvm-svn: 75857
      58fcef91
  2. Jul 15, 2009
    • Daniel Dunbar's avatar
      Reapply TargetRegistry refactoring commits. · e833810a
      Daniel Dunbar authored
      --- Reverse-merging r75799 into '.':
       U   test/Analysis/PointerTracking
      U    include/llvm/Target/TargetMachineRegistry.h
      U    include/llvm/Target/TargetMachine.h
      U    include/llvm/Target/TargetRegistry.h
      U    include/llvm/Target/TargetSelect.h
      U    tools/lto/LTOCodeGenerator.cpp
      U    tools/lto/LTOModule.cpp
      U    tools/llc/llc.cpp
      U    lib/Target/PowerPC/PPCTargetMachine.h
      U    lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp
      U    lib/Target/PowerPC/PPCTargetMachine.cpp
      U    lib/Target/PowerPC/PPC.h
      U    lib/Target/ARM/ARMTargetMachine.cpp
      U    lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp
      U    lib/Target/ARM/ARMTargetMachine.h
      U    lib/Target/ARM/ARM.h
      U    lib/Target/XCore/XCoreTargetMachine.cpp
      U    lib/Target/XCore/XCoreTargetMachine.h
      U    lib/Target/PIC16/PIC16TargetMachine.cpp
      U    lib/Target/PIC16/PIC16TargetMachine.h
      U    lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp
      U    lib/Target/Alpha/AlphaTargetMachine.cpp
      U    lib/Target/Alpha/AlphaTargetMachine.h
      U    lib/Target/X86/X86TargetMachine.h
      U    lib/Target/X86/X86.h
      U    lib/Target/X86/AsmPrinter/X86ATTAsmPrinter.h
      U    lib/Target/X86/AsmPrinter/X86AsmPrinter.cpp
      U    lib/Target/X86/AsmPrinter/X86IntelAsmPrinter.h
      U    lib/Target/X86/X86TargetMachine.cpp
      U    lib/Target/MSP430/MSP430TargetMachine.cpp
      U    lib/Target/MSP430/MSP430TargetMachine.h
      U    lib/Target/CppBackend/CPPTargetMachine.h
      U    lib/Target/CppBackend/CPPBackend.cpp
      U    lib/Target/CBackend/CTargetMachine.h
      U    lib/Target/CBackend/CBackend.cpp
      U    lib/Target/TargetMachine.cpp
      U    lib/Target/IA64/IA64TargetMachine.cpp
      U    lib/Target/IA64/AsmPrinter/IA64AsmPrinter.cpp
      U    lib/Target/IA64/IA64TargetMachine.h
      U    lib/Target/IA64/IA64.h
      U    lib/Target/MSIL/MSILWriter.cpp
      U    lib/Target/CellSPU/SPUTargetMachine.h
      U    lib/Target/CellSPU/SPU.h
      U    lib/Target/CellSPU/AsmPrinter/SPUAsmPrinter.cpp
      U    lib/Target/CellSPU/SPUTargetMachine.cpp
      U    lib/Target/Mips/AsmPrinter/MipsAsmPrinter.cpp
      U    lib/Target/Mips/MipsTargetMachine.cpp
      U    lib/Target/Mips/MipsTargetMachine.h
      U    lib/Target/Mips/Mips.h
      U    lib/Target/Sparc/AsmPrinter/SparcAsmPrinter.cpp
      U    lib/Target/Sparc/SparcTargetMachine.cpp
      U    lib/Target/Sparc/SparcTargetMachine.h
      U    lib/ExecutionEngine/JIT/TargetSelect.cpp
      U    lib/Support/TargetRegistry.cpp
      
      llvm-svn: 75820
      e833810a
    • Dan Gohman's avatar
      Add a Force option to raw_fd_ostream to specify whether opening · 607818a2
      Dan Gohman authored
      an existing file is considered an error. Convert several tools
      to use raw_fd_ostream instead of std::ostream, and to use this
      new option instead of doing a manual check.
      
      llvm-svn: 75801
      607818a2
    • Stuart Hastings's avatar
      Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair... · 338191cd
      Stuart Hastings authored
      Revert 75762, 75763, 75766..75769, 75772..75775, 75778, 75780, 75782 to repair broken LLVM-GCC build.
      Will revert 75770 in the llvm-gcc trunk.
      
      llvm-svn: 75799
      338191cd
    • Dan Gohman's avatar
      Add a raw_ostream version of CheckBitcodeOutputToConsole. · 6935332d
      Dan Gohman authored
      llvm-svn: 75796
      6935332d
    • Dan Gohman's avatar
      Check for errors on close(2) too. And lseek(2). · 213e87b1
      Dan Gohman authored
      llvm-svn: 75793
      213e87b1
    • Dan Gohman's avatar
      Use 0664 instead of 0644 for the default open mode. This is · 33fb6408
      Dan Gohman authored
      consistent with common std::ostream implmentations, and it gives
      the user the option of using the umask group write bit.
      
      llvm-svn: 75792
      33fb6408
    • Daniel Dunbar's avatar
      Allow multiple registrations of the same target. · 50859c90
      Daniel Dunbar authored
       - This doesn't necessarily seem like a good idea, but the JIT unittest
         currently relies on it.
      
      llvm-svn: 75769
      50859c90
    • Daniel Dunbar's avatar
      Detect write failures on raw_fd_ostream. · dcb50b9b
      Daniel Dunbar authored
      llvm-svn: 75758
      dcb50b9b
    • Daniel Dunbar's avatar
      Fix stupid thinko · 54995de1
      Daniel Dunbar authored
      llvm-svn: 75754
      54995de1
    • Daniel Dunbar's avatar
      Address some review comments on TargetRegistry. · 1c663322
      Daniel Dunbar authored
      llvm-svn: 75753
      1c663322
    • Ted Kremenek's avatar
      Update CMake file. · 1492e178
      Ted Kremenek authored
      llvm-svn: 75746
      1492e178
    • Daniel Dunbar's avatar
      Add new TargetRegistry. · 078a71e4
      Daniel Dunbar authored
      Targets implement a single global Target structure which will live in a new
      <Target>/TargetInfo library; this will be present in any image which the target
      is usable in.
       - Optional target specific classes can then be registered and attached to the
         Target description.
      
       - Registration for normal Targets will be done via the initialization functions
         instead of using static constructors.
      
       - This allows clients to use a single interface to obtain target data, without
         requiring the code generator be linked in. It also provides a natural
         extension point for adding new optional target data (assembler parser,
         disassembler, etc.).
      
       - This also provides a new entry point for obtaining a target for a particular
         triple (without a module).
      
       - Not yet used, however this should eventually replace the TargetMachineRegistry.
      
      llvm-svn: 75739
      078a71e4
    • Chris Lattner's avatar
      minor syntax cleanup · ca99c348
      Chris Lattner authored
      llvm-svn: 75707
      ca99c348
  3. Jul 14, 2009
  4. Jul 13, 2009
  5. Jul 12, 2009
  6. Jul 11, 2009
  7. Jul 10, 2009
    • David Greene's avatar
      · c97b778b
      David Greene authored
      Make changes suggested by Chris and eliminate newly-added raw_ostream
      hooks as they're no longer needed.
      
      The major change with this patch is to make formatted_raw_ostream usable
      by any client of raw_ostream.
      
      llvm-svn: 75283
      c97b778b
    • David Greene's avatar
      · ab11a81f
      David Greene authored
      Add some hooks that a redesigned AsmStream needs to do its job.  These
      allow derived classes to examine the stream buffer before it's flushed.
      
      llvm-svn: 75199
      ab11a81f
    • Dan Gohman's avatar
      Revert the part of 75177 that split ConstantRange into two classes, and · dc33ae27
      Dan Gohman authored
      merge the new functionality and unittests into ConstantRange. Thanks to
      Nick Lewycky for pointing out that it isn't necessary to have two separate
      classes here.
      
      llvm-svn: 75191
      dc33ae27
    • Dan Gohman's avatar
      Add a ConstantSignedRange class, which does for signed integers · 5035fbf9
      Dan Gohman authored
      what ConstantRange does for unsigned integers. Factor out a
      common base class for common functionality.
      
      Add some new functions for performing arithmetic on constant
      ranges. Some of these are currently just stubbed out with
      conservative implementations.
      
      Add unittests for ConstantRange and ConstantSignedRange.
      
      llvm-svn: 75177
      5035fbf9
  8. Jul 09, 2009
    • David Greene's avatar
      · 4417b4c8
      David Greene authored
      Add support for other GraphViz display tools.  This can help
      with very large graphs, where dot isn't necessarily the 
      most visually pleasing way of looking at the graph.
      
      llvm-svn: 75144
      4417b4c8
  9. Jul 08, 2009
    • David Greene's avatar
      · 9dadbbd7
      David Greene authored
      Allow users of GraphWriter to display graphs asynchronously.  This
      provides a way to quickly dump a bunch of graph information to dot files
      and display them.  It's a timesaver when working on large systems.
      
      llvm-svn: 75056
      9dadbbd7
Loading