Implement a !subst operation simmilar to $(subst) in GNU make to do
authorDavid Greene <greened@obbligato.org>
Thu, 14 May 2009 21:54:42 +0000 (21:54 +0000)
committerDavid Greene <greened@obbligato.org>
Thu, 14 May 2009 21:54:42 +0000 (21:54 +0000)
commit4afc509b7ffe2c4ea234dfd7af5105feb21685d9
treee095d38947400d6afe3a6885a236a45e8cc3955a
parent94555c28462aab05157b41d78505d5753bd97dad
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>;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71801 91177308-0d34-0410-b5e6-96231b3b80d8
docs/TableGenFundamentals.html
test/TableGen/subst.td [new file with mode: 0644]
utils/TableGen/Record.cpp
utils/TableGen/Record.h
utils/TableGen/TGLexer.cpp
utils/TableGen/TGLexer.h
utils/TableGen/TGParser.cpp