Lines Matching refs:Res
33 Value *Res = Builder.CreateSelect(Equal, Val, Orig); in LowerAtomicCmpXchgInst() local
34 Builder.CreateStore(Res, Ptr); in LowerAtomicCmpXchgInst()
36 Res = Builder.CreateInsertValue(UndefValue::get(CXI->getType()), Orig, 0); in LowerAtomicCmpXchgInst()
37 Res = Builder.CreateInsertValue(Res, Equal, 1); in LowerAtomicCmpXchgInst()
39 CXI->replaceAllUsesWith(Res); in LowerAtomicCmpXchgInst()
50 Value *Res = nullptr; in LowerAtomicRMWInst() local
55 Res = Val; in LowerAtomicRMWInst()
58 Res = Builder.CreateAdd(Orig, Val); in LowerAtomicRMWInst()
61 Res = Builder.CreateSub(Orig, Val); in LowerAtomicRMWInst()
64 Res = Builder.CreateAnd(Orig, Val); in LowerAtomicRMWInst()
67 Res = Builder.CreateNot(Builder.CreateAnd(Orig, Val)); in LowerAtomicRMWInst()
70 Res = Builder.CreateOr(Orig, Val); in LowerAtomicRMWInst()
73 Res = Builder.CreateXor(Orig, Val); in LowerAtomicRMWInst()
76 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
80 Res = Builder.CreateSelect(Builder.CreateICmpSLT(Orig, Val), in LowerAtomicRMWInst()
84 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
88 Res = Builder.CreateSelect(Builder.CreateICmpULT(Orig, Val), in LowerAtomicRMWInst()
92 Builder.CreateStore(Res, Ptr); in LowerAtomicRMWInst()