mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
Intrinsic adding is a little bit simpler now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -85,15 +85,8 @@ function and then be turned into an instruction if warranted.</p>
|
|||||||
what the restrictions are. Talk to other people about it so that you are
|
what the restrictions are. Talk to other people about it so that you are
|
||||||
sure it's a good idea.</li>
|
sure it's a good idea.</li>
|
||||||
|
|
||||||
<li><tt>llvm/include/llvm/Intrinsics.h</tt>:
|
<li><tt>llvm/include/llvm/Intrinsics.td</tt>:
|
||||||
add an enum in the <tt>llvm::Intrinsic</tt> namespace</li>
|
Add an entry for your intrinsic.</li>
|
||||||
|
|
||||||
<li><tt>llvm/lib/VMCore/Verifier.cpp</tt>:
|
|
||||||
Add code to check the invariants of the intrinsic are respected.</li>
|
|
||||||
|
|
||||||
<li><tt>llvm/lib/VMCore/Function.cpp (<tt>Function::getIntrinsicID()</tt>)</tt>:
|
|
||||||
Identify the new intrinsic function, returning the enum for the intrinsic
|
|
||||||
that you added.</li>
|
|
||||||
|
|
||||||
<li><tt>llvm/lib/Analysis/BasicAliasAnalysis.cpp</tt>: If the new intrinsic does
|
<li><tt>llvm/lib/Analysis/BasicAliasAnalysis.cpp</tt>: If the new intrinsic does
|
||||||
not access memory or does not write to memory, add it to the relevant list
|
not access memory or does not write to memory, add it to the relevant list
|
||||||
|
Reference in New Issue
Block a user