[PATCH] D103661: [IR] Add utility to convert constand expression operands (of an instruction) to instructions.
Mahesha S via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 3 18:28:21 PDT 2021
hsmhsm created this revision.
hsmhsm added reviewers: majnemer, rampitec, arsenm.
Herald added subscribers: dexonsmith, hiraditya.
hsmhsm requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
In the situation where we need to replace a constant operand C from a constant expression CE
by an instruction NI, it not possible without converting CE itself into an instruction. This
utility helps to convert the given set of constant expression operands from an instruction I
into a corresponding set of instructions.
The current use-case for this utility is from the patches - https://reviews.llvm.org/D103225
and https://reviews.llvm.org/D103655.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D103661
Files:
llvm/include/llvm/IR/ReplaceConstant.h
llvm/lib/IR/ReplaceConstant.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103661.349740.patch
Type: text/x-patch
Size: 4536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210604/17cf86be/attachment.bin>
More information about the llvm-commits
mailing list