mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix the instructions for adding an intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25310 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6fb3bd6a65
commit
2f86c223d3
@ -97,9 +97,13 @@ function and then be turned into an instruction if warranted.</p>
|
||||
not access memory or does not write to memory, add it to the relevant list
|
||||
of functions.</li>
|
||||
|
||||
<li><tt>llvm/lib/Transforms/Utils/Local.cpp</tt>: If it is possible to constant
|
||||
fold your intrinsic, add support to it in the <tt>canConstantFoldCallTo</tt> and
|
||||
<tt>ConstantFoldCall</tt> functions.</li>
|
||||
<li><tt>llvm/lib/Analysis/ConstantFolding.cpp</tt>: If it is possible to
|
||||
constant fold your intrinsic, add support to it in the
|
||||
<tt>canConstantFoldCallTo</tt> and <tt>ConstantFoldCall</tt> functions.</li>
|
||||
|
||||
<li><tt>llvm/lib/Transforms/Utils/Local.cpp</tt>: If your intrinsic has no side-
|
||||
effects, add it to the list of intrinsics in the
|
||||
<tt>isInstructionTriviallyDead</tt> function.</li>
|
||||
|
||||
<li>Test your intrinsic</li>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user