[PATCH] D49084: FileCheck: Add support for variable expressions
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 13 01:37:35 PDT 2018
jhenderson added a comment.
In https://reviews.llvm.org/D49084#1160851, @arichardson wrote:
> I case people are interested I have also implemented something similar in our fork of llvm. I chose `[[@EXPR var + 0x42]]` as the syntax. I also added some functions such as `[[@EXPR hex(VAR)]]`.
> Variables can either by referenced by name or if they conflict with one of the builtin functions using `${x}` syntax: `[[@EXPR toupper(hex(${hex}))]]`
Simple functions are also on my wish-list! The main ones we care about are converting to and from hex numbers, and being able to do additions and subtractions. But I think just the basic integer and hex reading and additions would be a good start.
Repository:
rL LLVM
https://reviews.llvm.org/D49084
More information about the llvm-commits
mailing list