[TableGen] Add the !find bang operator
authorPaul C. Anagnostopoulos <paul@windfall.com>
Mon, 26 Apr 2021 13:53:35 +0000 (09:53 -0400)
committerPaul C. Anagnostopoulos <paul@windfall.com>
Wed, 28 Apr 2021 13:51:00 +0000 (09:51 -0400)
commit952c6ddd8b32a0dc4a65147e20999428191950f0
treebb1590f6cd8093644862247e8eaa53532972e2c0
parentf0e848e63d99d9c13c7627dab013c05227d8b8f5
[TableGen] Add the !find bang operator

!find searches a source string for a target string and returns the position.

Differential Revision: https://reviews.llvm.org/D101318
llvm/docs/TableGen/ProgRef.rst
llvm/include/llvm/TableGen/Record.h
llvm/lib/TableGen/Record.cpp
llvm/lib/TableGen/TGLexer.cpp
llvm/lib/TableGen/TGLexer.h
llvm/lib/TableGen/TGParser.cpp
llvm/lib/TableGen/TGParser.h
llvm/test/TableGen/find.td [new file with mode: 0644]