[LLVMdev] TableGen Operator Names
Chris Lattner
clattner at apple.com
Tue Jan 11 08:54:31 PST 2011
On Jan 7, 2011, at 9:26 AM, David Greene wrote:
> I just submitted a change to TableGen to make the lisp-like operator
> names more readable (as suggested by Gabor a very long time ago).
Thanks for doing this!
> I would also like to change the way operators are invoked. As I keep
> adding more functionality, the bang invocation syntax is making things
> hard to read. For example:
>
> !if(!empty(arg),then,else)
>
> Does this mean "if empty," "if not empty" or "not if not empty?" It's
> the first but that's less than obvious.
>
> Would anyone object if I changed the syntax from !operator to &operator?
In the absence of a much better proposal, I'd prefer to just keep it the way it is.
-Chris
More information about the llvm-dev
mailing list