mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Adjust the Intrinsics.gen interface a little bit
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7224f84c15
commit
5348e393df
@ -214,9 +214,9 @@ EmitNoMemoryInfo(const std::vector<CodeGenIntrinsic> &Ints, std::ostream &OS) {
|
||||
|
||||
void IntrinsicEmitter::
|
||||
EmitSideEffectInfo(const std::vector<CodeGenIntrinsic> &Ints, std::ostream &OS){
|
||||
OS << "// isInstructionTriviallyDead code.\n";
|
||||
OS << "// Return true if doesn't access or only reads memory.\n";
|
||||
OS << "#ifdef GET_SIDE_EFFECT_INFO\n";
|
||||
OS << " switch (F->getIntrinsicID()) {\n";
|
||||
OS << " switch (IntrinsicID) {\n";
|
||||
OS << " default: break;\n";
|
||||
for (unsigned i = 0, e = Ints.size(); i != e; ++i) {
|
||||
switch (Ints[i].ModRef) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user