Commit Graph

46 Commits

Author SHA1 Message Date
David Greene 297bfe6d71 Add an !eq() operator to TableGen. It operates on strings only.
Use !cast<string>() to compare other types of objects.

llvm-svn: 92754
2010-01-05 19:11:42 +00:00
Dan Gohman 453d64c9f5 Rename usesCustomDAGSchedInserter to usesCustomInserter, and update a
bunch of associated comments, because it doesn't have anything to do
with DAGs or scheduling. This is another step in decoupling MachineInstr
emitting from scheduling.

llvm-svn: 85517
2009-10-29 18:10:34 +00:00
Evan Cheng ef716b04b3 Move implicit and paralle to a separate codegen specific section.
llvm-svn: 83291
2009-10-05 02:51:06 +00:00
Benjamin Kramer eaccdd34a3 Documentation: fix HTML validation errors.
llvm-svn: 78196
2009-08-05 15:42:44 +00:00
David Greene efa19619c8 Implement !cast<string>.
llvm-svn: 74444
2009-06-29 20:05:29 +00:00
David Greene 58a6b76cfd 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
2009-06-09 18:31:17 +00:00
David Greene 67c05bff31 Add a !patsubst operator. Use on string types.
llvm-svn: 73099
2009-06-08 23:05:37 +00:00
David Greene 26433c2bec Update documentation.
llvm-svn: 73092
2009-06-08 22:38:07 +00:00
David Greene 07eba05a61 Add a !regmatch operator to do pattern matching in TableGen.
llvm-svn: 73074
2009-06-08 17:00:34 +00:00
Evan Cheng e87bd1d8f7 Add short descriptions of 'implicit' and 'parallel'.
llvm-svn: 72050
2009-05-18 22:14:45 +00:00
David Greene 3587eed2c4 Implement !if, analogous to $(if) in GNU make.
llvm-svn: 71815
2009-05-14 23:26:46 +00:00
David Greene d571b3c94b 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
2009-05-14 22:38:31 +00:00
David Greene e917fff30f 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
2009-05-14 22:23:47 +00:00
David Greene 98ed3c7273 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
2009-05-14 21:54:42 +00:00
David Greene e8f3b27e65 Implement !cast.
llvm-svn: 71794
2009-05-14 21:22:49 +00:00
David Greene 0e89886048 Fix a documentation bug.
llvm-svn: 69923
2009-04-23 21:27:58 +00:00
David Greene 196ac3c69a 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
2009-04-23 21:25:15 +00:00
David Greene f00919a040 Allow defm to inherit from multiple multiclasses.
llvm-svn: 69832
2009-04-22 22:17:51 +00:00
David Greene a9c6c5d39b Implement !nameconcat to concatenate strings and look up the resulting
name in the symbol table, returning an object.

llvm-svn: 69822
2009-04-22 20:18:10 +00:00
David Greene 753ed8fd9c Implement multiclass inheritance.
llvm-svn: 69810
2009-04-22 16:42:54 +00:00
Misha Brukman 86242e1990 Global replace of yellow W3C "valid HTML/CSS" icons with blue ones.
llvm-svn: 60880
2008-12-11 17:34:48 +00:00
Dan Gohman 69cc2cbbff Rename isSimpleLoad to canFoldAsLoad, to better reflect its meaning.
llvm-svn: 60487
2008-12-03 18:15:48 +00:00
Matthijs Kooijman 3abb308878 Fix spelling error.
llvm-svn: 57820
2008-10-20 08:45:34 +00:00
Dan Gohman 2ed2753007 HTML syntax fixes.
llvm-svn: 57503
2008-10-14 17:00:38 +00:00
Bill Wendling f59af190a3 More violation fixes.
llvm-svn: 46997
2008-02-12 07:12:46 +00:00
Bill Wendling 8402d0270e Fix validation errors: di -> dt.
llvm-svn: 46996
2008-02-12 07:09:05 +00:00
Bill Wendling 1a19af9605 Reformatting. Adding "doc_code" divisions for code examples. Updated some
of the examples to reflect the current .TD files.

llvm-svn: 46995
2008-02-12 07:06:19 +00:00
Jim Laskey ea05a06a49 Missing anchor
llvm-svn: 30227
2006-09-09 09:10:37 +00:00
Chris Lattner 28368120a5 Fix a typo Jim pointed out, thanks!
llvm-svn: 30035
2006-09-01 22:01:36 +00:00
Chris Lattner b5b0c1ae65 document !strconcat
llvm-svn: 30032
2006-09-01 21:46:01 +00:00
Chris Lattner f01a85bdf2 Document multiclasses and defm's
llvm-svn: 30030
2006-09-01 21:44:18 +00:00
Reid Spencer ca05854a71 Changes docs for llvm.cs.uiuc.edu -> llvm.org
llvm-svn: 26746
2006-03-14 05:39:39 +00:00
Jeff Cohen dd24d7c477 Fix spelling of 'separate'.
llvm-svn: 23971
2005-10-24 16:54:55 +00:00
Chris Lattner 808c642e62 new expression type
llvm-svn: 23272
2005-09-08 18:47:21 +00:00
Misha Brukman 95908889f4 Surround code element with <tt> tags
llvm-svn: 15507
2004-08-04 22:00:05 +00:00
Misha Brukman 0fc57a6c47 Put <tt> around verbatim code elements.
llvm-svn: 15310
2004-07-28 22:09:29 +00:00
Chris Lattner cea15a64a2 Document new syntax
llvm-svn: 15265
2004-07-27 07:49:39 +00:00
Chris Lattner 7f50013b0e Remove dead section
llvm-svn: 15241
2004-07-26 21:16:55 +00:00
Misha Brukman 3155159ef9 Fix broken internal link.
llvm-svn: 14002
2004-06-03 23:42:24 +00:00
Misha Brukman 94192b638c Specify div type "doc_text" to get proper indentation for paragraphs.
llvm-svn: 13989
2004-06-03 16:59:59 +00:00
Chris Lattner 020e1fc733 Make use of the new doc_author class. "Seperate content from presentation" they said.
llvm-svn: 13675
2004-05-23 21:07:27 +00:00
Misha Brukman 692cec07db Make document HTML-4.01 (Strict) compliant.
llvm-svn: 13497
2004-05-12 18:31:21 +00:00
John Criswell 407f6d46d9 Fixed minor typos.
llvm-svn: 11356
2004-02-12 18:11:53 +00:00
Chris Lattner 55927236e8 Add information about the piece I forgot to write: parameterized tablegen classes
llvm-svn: 11147
2004-02-06 06:37:00 +00:00
Chris Lattner 1215e32eb7 Syntax hilight examples and add note about emacs/vim mode files
llvm-svn: 11146
2004-02-06 06:04:25 +00:00
Chris Lattner 149a2498d0 Add a new document describing TableGen
llvm-svn: 11145
2004-02-06 05:42:53 +00:00