Skip to content
  1. Nov 29, 2010
  2. Oct 06, 2010
  3. Sep 27, 2010
  4. Sep 21, 2010
  5. Sep 03, 2010
    • David Greene's avatar
      · 2a9de4d8
      David Greene authored
      Generalize getFieldType to work on all TypedInits.  Add a couple of testcases from 
      Amaury Pouly.
      
      llvm-svn: 113010
      2a9de4d8
  6. May 26, 2010
  7. Apr 09, 2010
  8. Apr 05, 2010
    • Jakob Stoklund Olesen's avatar
      Replace TSFlagsFields and TSFlagsShifts with a simpler TSFlags field. · b93331f3
      Jakob Stoklund Olesen authored
      When a target instruction wants to set target-specific flags, it should simply
      set bits in the TSFlags bit vector defined in the Instruction TableGen class.
      
      This works well because TableGen resolves member references late:
      
      class I : Instruction {
        AddrMode AM = AddrModeNone;
        let TSFlags{3-0} = AM.Value;
      }
      
      let AM = AddrMode4 in
      def ADD : I;
      
      TSFlags gets the expected bits from AddrMode4 in this example.
      
      llvm-svn: 100384
      b93331f3
  9. Mar 25, 2010
  10. Mar 01, 2010
    • Chris Lattner's avatar
      Fix PR2590 by making PatternSortingPredicate actually be · d39f75ba
      Chris Lattner authored
      ordered correctly.  Previously it would get in trouble when
      two patterns were too similar and give them nondet ordering.
      We force this by using the record ID order as a fallback.
      
      The testsuite diff is due to alpha patterns being ordered
      slightly differently, the change is a semantic noop afaict:
      
      < 	lda $0,-100($16)
      ---
      > 	subq $16,100,$0
      
      llvm-svn: 97509
      d39f75ba
  11. Jan 05, 2010
    • David Greene's avatar
      · 297bfe6d
      David Greene authored
      Add an !eq() operator to TableGen.  It operates on strings only.
      Use !cast<string>() to compare other types of objects.
      
      llvm-svn: 92754
      297bfe6d
  12. Nov 24, 2009
  13. Nov 22, 2009
  14. Nov 21, 2009
  15. Oct 26, 2009
  16. Sep 18, 2009
  17. Aug 23, 2009
    • Daniel Dunbar's avatar
      Fix non-determinism in DAGISel emitter. · ced00815
      Daniel Dunbar authored
       - This manifested as non-determinism in the .inc output in rare cases (when two
         distinct patterns ended up being equivalent, which is rather rare). That
         meant the pattern matching was non-deterministic, which could eventually mean
         the code generator selected different instructions based on the arch.
      
       - It's probably worth making the DAGISel ensure a total ordering (or force the
         user to), but the simple fix here is to totally order the Record* maps based
         on a unique ID.
      
       - PR4672, PR4711.
      
      Yay:
      --
      ddunbar@giles:~$ cat ~/llvm.obj.64/lib/Target/*/*.inc | shasum
      d1099ff34b21459a5a3e7021c225c080e6017ece  -
      ddunbar@giles:~$ cat ~/llvm.obj.ppc/lib/Target/*/*.inc | shasum
      d1099ff34b21459a5a3e7021c225c080e6017ece  -
      --
      
      llvm-svn: 79846
      ced00815
  18. Aug 13, 2009
  19. Jul 03, 2009
  20. Jun 29, 2009
    • David Greene's avatar
      · efa19619
      David Greene authored
      Implement !cast<string>.
      
      llvm-svn: 74444
      efa19619
  21. Jun 21, 2009
  22. Jun 09, 2009
    • David Greene's avatar
      · 58a6b76c
      David Greene authored
      Revert 73074 and 73099 because Windows doesn't have POSIX
      regular expressions.  We will add an OpenBSD implementation
      and re-apply ASAP.
      
      llvm-svn: 73138
      58a6b76c
    • David Greene's avatar
      · 67c05bff
      David Greene authored
      Add a !patsubst operator.  Use on string types.
      
      llvm-svn: 73099
      67c05bff
  23. Jun 08, 2009
    • David Greene's avatar
      · 8618f95c
      David Greene authored
      Make IntInits and ListInits typed.  This helps deduce types of !if and
      other operators.  For the rare cases where a list type cannot be
      deduced, provide a []<type> syntax, where <type> is the list element
      type.
      
      llvm-svn: 73078
      8618f95c
    • David Greene's avatar
      · 07eba05a
      David Greene authored
      Add a !regmatch operator to do pattern matching in TableGen.
      
      llvm-svn: 73074
      07eba05a
  24. May 15, 2009
    • Nick Lewycky's avatar
      Add extra parenthesis around || statements to pacify compiler. · d449e7c8
      Nick Lewycky authored
      Also fix up some 80col violations while I'm there.
      
      llvm-svn: 71833
      d449e7c8
    • David Greene's avatar
      · 3587eed2
      David Greene authored
      Implement !if, analogous to $(if) in GNU make.
      
      llvm-svn: 71815
      3587eed2
    • David Greene's avatar
      · d571b3c9
      David Greene authored
      Graduate LLVM to the big leagues by embedding a LISP processor into TableGen.
      
      Ok, not really, but do support some common LISP functions:
      
      * car
      * cdr
      * null
      
      llvm-svn: 71805
      d571b3c9
    • David Greene's avatar
      · e917fff3
      David Greene authored
      Implement a !foreach operator analogous to GNU make's $(foreach).
      Use it on dags and lists like this:
      
      class decls {
        string name;
      }
      
      def Decls : decls;
      
      class B<list<string> names> : A<!foreach(Decls.name, names, !strconcat(Decls.name, ", Sr."))>;
      
      llvm-svn: 71803
      e917fff3
  25. May 14, 2009
    • David Greene's avatar
      · 98ed3c72
      David Greene authored
      Implement a !subst operation simmilar to $(subst) in GNU make to do
      def/var/string substitution on generic pattern templates.  For example:
      
      def Type;
      def v4f32 : Type;
      def TYPE : Type;
      
      class GenType<Type t> {
        let type = !(subst TYPE, v4f32, t);
      }
      
      def TheType : GenType<TYPE>;
      
      llvm-svn: 71801
      98ed3c72
    • David Greene's avatar
      · e8f3b27e
      David Greene authored
      Implement !cast.
      
      llvm-svn: 71794
      e8f3b27e
    • David Greene's avatar
      · 5d0c051e
      David Greene authored
      Operation Enhancements
      
      Create an OpInit class to serve as a base for all operation Inits.
      
      Move parsing of operation constructs to separate functions and reference
      from multiple places.
      
      Add some commented out new operations.  Coming soon.
      
      llvm-svn: 71789
      5d0c051e
  26. Apr 30, 2009
  27. Apr 24, 2009
    • David Greene's avatar
      · 7049e79e
      David Greene authored
      Fix multiclass inheritance to limit value resolution to new defs added
      by base multiclasses.  Do not attempt to alter defs from previous base
      multiclasses.  This fixes multiple multiclass inheritance.
      
      llvm-svn: 69974
      7049e79e
  28. Apr 23, 2009
    • David Greene's avatar
      · 196ac3c6
      David Greene authored
      Make BinOps typed and require a type specifier for !nameconcat.  This
      allows binops to be used in typed contexts such as when passing
      arguments to classes.
      
      llvm-svn: 69921
      196ac3c6
  29. Apr 22, 2009
    • David Greene's avatar
      · a9c6c5d3
      David Greene authored
      Implement !nameconcat to concatenate strings and look up the resulting
      name in the symbol table, returning an object.
      
      llvm-svn: 69822
      a9c6c5d3
  30. Mar 19, 2009
Loading