Skip to content

Commit

Permalink
afree patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ah744 committed Dec 22, 2016
1 parent 02af1d2 commit fb0341d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Transforms/Scaffold/GenQASM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ void GenQASM::genQASM(Function* F)
else if(fToPrint.find("Tdag") != string::npos) fToPrint = "Tdag";
else if(fToPrint.find("X.") != string::npos) fToPrint = "X";
else if(fToPrint.find("Z.") != string::npos) fToPrint = "Z";
else if(fToPrint.find("afree") != string::npos) continue;

std::replace(fToPrint.begin(), fToPrint.end(), '.', '_');
std::replace(fToPrint.begin(), fToPrint.end(), '-', '_');
Expand Down

0 comments on commit fb0341d

Please sign in to comment.