Skip to content

Instantly share code, notes, and snippets.

@annanay25
Last active May 10, 2017 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save annanay25/5c4f47ab96cba1f0220f49b455fb191b to your computer and use it in GitHub Desktop.
Save annanay25/5c4f47ab96cba1f0220f49b455fb191b to your computer and use it in GitHub Desktop.
void BlockGenerator::copyInstruction(...){
.
.
.
// Skip some special intrinsics for which we do not adjust the semantics to
// the new schedule. All others are handled like every other instruction.
if (isIgnoredIntrinsic(Inst)){
IntrinsicInst *IT = dyn_cast<IntrinsicInst>(Inst);
if(IT->getIntrinsicID() == llvm::Intrinsic::expect){
Instruction *ValInst = dyn_cast<Instruction>(dyn_cast<CallInst>(Inst)->getArgOperand(0));
copyInstScalar(Stmt, ValInst, BBMap, LTS);
}
return;
}
.
.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment