Skip to content
Snippets Groups Projects
  1. Jan 19, 2014
  2. Jan 18, 2014
  3. Jan 17, 2014
  4. Jan 16, 2014
    • Reid Kleckner's avatar
      Change inalloca rules to make it only apply to the last parameter · 60d3a835
      Reid Kleckner authored
      This makes things a lot easier, because we can now talk about the
      "argument allocation", which allocates all the memory for the call in
      one shot.
      
      The only functional change is to the verifier for a feature that hasn't
      shipped yet.
      
      llvm-svn: 199434
      60d3a835
    • Quentin Colombet's avatar
      [opt][PassInfo] Allow opt to run passes that need target machine. · dc0b2ea2
      Quentin Colombet authored
      When registering a pass, a pass can now specify a second construct that takes as
      argument a pointer to TargetMachine.
      The PassInfo class has been updated to reflect that possibility.
      If such a constructor exists opt will use it instead of the default constructor
      when instantiating the pass.
      
      Since such IR passes are supposed to be rare, no specific support has been
      added to this commit to allow an easy registration of such a pass.
      In other words, for such pass, the initialization function has to be
      hand-written (see CodeGenPrepare for instance).
      
      Now, codegenprepare can be tested using opt:
      opt -codegenprepare -mtriple=mytriple input.ll
      
      llvm-svn: 199430
      dc0b2ea2
Loading