Lines Matching defs:Orig
29 LoadInst *Orig = Builder.CreateLoad(Ptr);
30 Value *Equal = Builder.CreateICmpEQ(Orig, Cmp);
31 Value *Res = Builder.CreateSelect(Equal, Val, Orig);
34 CXI->replaceAllUsesWith(Orig);
44 LoadInst *Orig = Builder.CreateLoad(Ptr);
53 Res = Builder.CreateAdd(Orig, Val);
56 Res = Builder.CreateSub(Orig, Val);
59 Res = Builder.CreateAnd(Orig, Val);
62 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val));
65 Res = Builder.CreateOr(Orig, Val);
68 Res = Builder.CreateXor(Orig, Val);
71 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val),
72 Val, Orig);
75 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val),
76 Orig, Val);
79 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val),
80 Val, Orig);
83 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val),
84 Orig, Val);
88 RMWI->replaceAllUsesWith(Orig);