diff options
| author | Alex Bradbury <asb@lowrisc.org> | 2018-09-20 11:40:43 +0000 |
|---|---|---|
| committer | Alex Bradbury <asb@lowrisc.org> | 2018-09-20 11:40:43 +0000 |
| commit | 96ed75d066bf1ff27816c4898effb3eb6786dddf (patch) | |
| tree | 0980afbe411d9219b06d2f33b749bc9867b8d59c /llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp | |
| parent | 045aa20619c5cc58ef795bcbbd0ba82076469515 (diff) | |
| download | bcm5719-llvm-96ed75d066bf1ff27816c4898effb3eb6786dddf.tar.gz bcm5719-llvm-96ed75d066bf1ff27816c4898effb3eb6786dddf.zip | |
[RISCV][MC] Modify evaluateConstantImm interface to allow reuse from addExpr
This is a trivial refactoring that I'm committing now as it makes a patch I'm
about to post for review easier to follow. There is some overlap between
evaluateConstantImm and addExpr in RISCVAsmParser. This patch allows
evaluateConstantImm to be reused from addExpr to remove this overlap. The
benefit will be greater when a future patch adds extra code to allows
immediates to be evaluated from constant symbols (e.g. `.equ CONST, 0x1234`).
No functional change intended.
llvm-svn: 342641
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/SnippetGenerator.cpp')
0 files changed, 0 insertions, 0 deletions

