Home
last modified time | relevance | path

Searched refs:CmpVal (Results 1 – 25 of 34) sorted by relevance

12

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp736 Register OldValRes, Register SuccessRes, Register Addr, Register CmpVal, in buildAtomicCmpXchgWithSuccess() argument
742 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
757 .addUse(CmpVal) in buildAtomicCmpXchgWithSuccess()
764 Register CmpVal, Register NewVal, in buildAtomicCmpXchg() argument
769 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
782 .addUse(CmpVal) in buildAtomicCmpXchg()
DLegalizerHelper.cpp2062 Register CmpVal = MI.getOperand(3).getReg(); in lower() local
2064 MIRBuilder.buildAtomicCmpXchg(OldValRes, Addr, CmpVal, NewVal, in lower()
2066 MIRBuilder.buildICmp(CmpInst::ICMP_EQ, SuccessRes, OldValRes, CmpVal); in lower()
/external/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp1880 uint64_t Mask, uint64_t CmpVal, in getTestUnderMaskCond() argument
1899 if (CmpVal == 0) { in getTestUnderMaskCond()
1905 if (EffectivelyUnsigned && CmpVal > 0 && CmpVal <= Low) { in getTestUnderMaskCond()
1911 if (EffectivelyUnsigned && CmpVal < Low) { in getTestUnderMaskCond()
1919 if (CmpVal == Mask) { in getTestUnderMaskCond()
1925 if (EffectivelyUnsigned && CmpVal >= Mask - Low && CmpVal < Mask) { in getTestUnderMaskCond()
1931 if (EffectivelyUnsigned && CmpVal > Mask - Low && CmpVal <= Mask) { in getTestUnderMaskCond()
1939 if (EffectivelyUnsigned && CmpVal >= Mask - High && CmpVal < High) { in getTestUnderMaskCond()
1945 if (EffectivelyUnsigned && CmpVal > Mask - High && CmpVal <= High) { in getTestUnderMaskCond()
1955 if (CCMask == SystemZ::CCMASK_CMP_EQ && CmpVal == Low) in getTestUnderMaskCond()
[all …]
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/
DMachineIRBuilder.cpp765 Register OldValRes, Register SuccessRes, Register Addr, Register CmpVal, in buildAtomicCmpXchgWithSuccess() argument
771 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchgWithSuccess()
786 .addUse(CmpVal) in buildAtomicCmpXchgWithSuccess()
793 Register CmpVal, Register NewVal, in buildAtomicCmpXchg() argument
798 LLT CmpValTy = getMRI()->getType(CmpVal); in buildAtomicCmpXchg()
811 .addUse(CmpVal) in buildAtomicCmpXchg()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp2286 uint64_t Mask, uint64_t CmpVal, in getTestUnderMaskCond() argument
2305 if (CmpVal == 0) { in getTestUnderMaskCond()
2311 if (EffectivelyUnsigned && CmpVal > 0 && CmpVal <= Low) { in getTestUnderMaskCond()
2317 if (EffectivelyUnsigned && CmpVal < Low) { in getTestUnderMaskCond()
2325 if (CmpVal == Mask) { in getTestUnderMaskCond()
2331 if (EffectivelyUnsigned && CmpVal >= Mask - Low && CmpVal < Mask) { in getTestUnderMaskCond()
2337 if (EffectivelyUnsigned && CmpVal > Mask - Low && CmpVal <= Mask) { in getTestUnderMaskCond()
2345 if (EffectivelyUnsigned && CmpVal >= Mask - High && CmpVal < High) { in getTestUnderMaskCond()
2351 if (EffectivelyUnsigned && CmpVal > Mask - High && CmpVal <= High) { in getTestUnderMaskCond()
2361 if (CCMask == SystemZ::CCMASK_CMP_EQ && CmpVal == Low) in getTestUnderMaskCond()
[all …]
/external/llvm-project/llvm/lib/Target/SystemZ/
DSystemZISelLowering.cpp2326 uint64_t Mask, uint64_t CmpVal, in getTestUnderMaskCond() argument
2345 if (CmpVal == 0) { in getTestUnderMaskCond()
2351 if (EffectivelyUnsigned && CmpVal > 0 && CmpVal <= Low) { in getTestUnderMaskCond()
2357 if (EffectivelyUnsigned && CmpVal < Low) { in getTestUnderMaskCond()
2365 if (CmpVal == Mask) { in getTestUnderMaskCond()
2371 if (EffectivelyUnsigned && CmpVal >= Mask - Low && CmpVal < Mask) { in getTestUnderMaskCond()
2377 if (EffectivelyUnsigned && CmpVal > Mask - Low && CmpVal <= Mask) { in getTestUnderMaskCond()
2385 if (EffectivelyUnsigned && CmpVal >= Mask - High && CmpVal < High) { in getTestUnderMaskCond()
2391 if (EffectivelyUnsigned && CmpVal > Mask - High && CmpVal <= High) { in getTestUnderMaskCond()
2401 if (CCMask == SystemZ::CCMASK_CMP_EQ && CmpVal == Low) in getTestUnderMaskCond()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/RISCV/
DRISCVISelLowering.h217 Value *AlignedAddr, Value *CmpVal,
DRISCVISelLowering.cpp2866 Value *CmpVal, Value *NewVal, Value *Mask, AtomicOrdering Ord) const { in emitMaskedAtomicCmpXchgIntrinsic() argument
2871 CmpVal = Builder.CreateSExt(CmpVal, Builder.getInt64Ty()); in emitMaskedAtomicCmpXchgIntrinsic()
2880 MaskedCmpXchg, {AlignedAddr, CmpVal, NewVal, Mask, Ordering}); in emitMaskedAtomicCmpXchgIntrinsic()
/external/llvm-project/llvm/lib/Target/RISCV/
DRISCVISelLowering.h231 Value *AlignedAddr, Value *CmpVal,
DRISCVISelLowering.cpp3577 Value *CmpVal, Value *NewVal, Value *Mask, AtomicOrdering Ord) const { in emitMaskedAtomicCmpXchgIntrinsic() argument
3582 CmpVal = Builder.CreateSExt(CmpVal, Builder.getInt64Ty()); in emitMaskedAtomicCmpXchgIntrinsic()
3591 MaskedCmpXchg, {AlignedAddr, CmpVal, NewVal, Mask, Ordering}); in emitMaskedAtomicCmpXchgIntrinsic()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp1383 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
1388 CmpVal, VAddr, SRsrc, SOffset, Offset, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
1401 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
1403 CmpVal, SRsrc, SOffset, Offset, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp3437 unsigned CmpVal = ValToCheck.countTrailingZeros(); in visitICmpInst() local
3439 ConstantInt::get(X->getType(), CmpVal)); in visitICmpInst()
3441 unsigned CmpVal = ValToCheck.countTrailingZeros() - 1; in visitICmpInst() local
3443 ConstantInt::get(X->getType(), CmpVal)); in visitICmpInst()
3481 unsigned CmpVal = ValToCheck.countTrailingZeros(); in visitICmpInst() local
3483 ConstantInt::get(X->getType(), CmpVal)); in visitICmpInst()
3485 unsigned CmpVal = ValToCheck.countTrailingZeros(); in visitICmpInst() local
3487 ConstantInt::get(X->getType(), CmpVal)); in visitICmpInst()
4221 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in visitICmpInst() local
4222 return new ICmpInst(Pred, Xor, Builder->getInt(CmpVal)); in visitICmpInst()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h984 Register Addr, Register CmpVal, Register NewVal,
1002 Register CmpVal, Register NewVal,
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
DMachineIRBuilder.h1126 Register Addr, Register CmpVal, Register NewVal,
1144 Register CmpVal, Register NewVal,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp2169 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
2174 CmpVal, VAddr, SRsrc, SOffset, Offset, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
2187 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
2189 CmpVal, SRsrc, SOffset, Offset, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
DAMDGPULegalizerInfo.cpp1783 Register CmpVal = MI.getOperand(2).getReg(); in legalizeAtomicCmpXChg() local
1790 LLT ValTy = MRI.getType(CmpVal); in legalizeAtomicCmpXChg()
1794 Register PackedVal = B.buildBuildVector(VecTy, { NewVal, CmpVal }).getReg(0); in legalizeAtomicCmpXChg()
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUISelDAGToDAG.cpp2397 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
2403 CmpVal, VAddr, SRsrc, SOffset, Offset, GLC, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
2416 SDValue CmpVal = Mem->getOperand(2); in SelectATOMIC_CMP_SWAP() local
2419 CmpVal, SRsrc, SOffset, Offset, GLC, SLC, Mem->getChain() in SelectATOMIC_CMP_SWAP()
DAMDGPULegalizerInfo.cpp2470 Register CmpVal = MI.getOperand(2).getReg(); in legalizeAtomicCmpXChg() local
2476 LLT ValTy = MRI.getType(CmpVal); in legalizeAtomicCmpXChg()
2479 Register PackedVal = B.buildBuildVector(VecTy, { NewVal, CmpVal }).getReg(0); in legalizeAtomicCmpXChg()
3898 Register CmpVal; in legalizeBufferAtomic() local
3901 CmpVal = MI.getOperand(3 + OpOffset).getReg(); in legalizeBufferAtomic()
3939 MIB.addReg(CmpVal); in legalizeBufferAtomic()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyISelLowering.cpp363 double CmpVal = IsUnsigned ? -(double)Limit * 2.0 : -(double)Limit; in LowerFPToInt() local
404 .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal))); in LowerFPToInt()
/external/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp1159 Value *CmpVal = Constant::getNullValue(ShadowTy); in instrumentAddress() local
1163 Value *Cmp = IRB.CreateICmpNE(ShadowValue, CmpVal); in instrumentAddress()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyISelLowering.cpp353 double CmpVal = IsUnsigned ? -(double)Limit * 2.0 : -(double)Limit; in LowerFPToInt() local
394 .addFPImm(cast<ConstantFP>(ConstantFP::get(Ty, CmpVal))); in LowerFPToInt()
/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4324 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in foldICmpEquality() local
4325 return new ICmpInst(NewPred, Xor, Builder.getInt(CmpVal)); in foldICmpEquality()
5122 unsigned CmpVal = CI->countTrailingZeros(); in foldICmpUsingKnownBits() local
5124 return new ICmpInst(NewPred, X, ConstantInt::get(X->getType(), CmpVal)); in foldICmpUsingKnownBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp4254 APInt CmpVal = APInt::getOneBitSet(TypeBits, ShAmt); in foldICmpEquality() local
4255 return new ICmpInst(NewPred, Xor, Builder.getInt(CmpVal)); in foldICmpEquality()
5057 unsigned CmpVal = CI->countTrailingZeros(); in foldICmpUsingKnownBits() local
5059 return new ICmpInst(NewPred, X, ConstantInt::get(X->getType(), CmpVal)); in foldICmpUsingKnownBits()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp1700 Value *CmpVal = Constant::getNullValue(ShadowTy); in instrumentAddress() local
1704 Value *Cmp = IRB.CreateICmpNE(ShadowValue, CmpVal); in instrumentAddress()
/external/llvm-project/llvm/lib/Transforms/Instrumentation/
DAddressSanitizer.cpp1687 Value *CmpVal = Constant::getNullValue(ShadowTy); in instrumentAddress() local
1691 Value *Cmp = IRB.CreateICmpNE(ShadowValue, CmpVal); in instrumentAddress()

12