Home
last modified time | relevance | path

Searched refs:IsExact (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project-15.0.7/clang/lib/Sema/
H A DScopeInfo.cpp73 bool IsExact = false; in getBaseInfo() local
78 IsExact = isa<VarDecl>(D); in getBaseInfo()
83 IsExact = isa<CXXThisExpr>(ME->getBase()->IgnoreParenImpCasts()); in getBaseInfo()
89 IsExact = IE->getBase()->isObjCSelfExpr(); in getBaseInfo()
104 IsExact = DoubleBase->isObjCSelfExpr(); in getBaseInfo()
113 return BaseInfoTy(D, IsExact); in getBaseInfo()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DOperator.h129 IsExact = (1 << 0) enumerator
137 SubclassOptionalData = (SubclassOptionalData & ~IsExact) | (B * IsExact); in setIsExact()
143 return SubclassOptionalData & IsExact; in isExact()
H A DConstantFolder.h56 bool IsExact) const override { in FoldExactBinOp() argument
62 IsExact ? PossiblyExactOperator::IsExact : 0); in FoldExactBinOp()
H A DIRBuilderFolder.h39 Value *RHS, bool IsExact) const = 0;
H A DNoFolder.h54 bool IsExact) const override { in FoldExactBinOp() argument
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DTargetFolder.h67 bool IsExact) const override { in FoldExactBinOp() argument
73 Opc, LC, RC, IsExact ? PossiblyExactOperator::IsExact : 0)); in FoldExactBinOp()
H A DInstSimplifyFolder.h56 bool IsExact) const override { in FoldExactBinOp() argument
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/cppcoreguidelines/
H A DNarrowingConversionsCheck.cpp280 bool IsExact = false; in isFloatExactlyRepresentable() local
282 Result, llvm::APFloat::rmTowardZero, &IsExact) & in isFloatExactlyRepresentable()
284 return !Overflows && IsExact; in isFloatExactlyRepresentable()
/llvm-project-15.0.7/llvm/include/llvm/ADT/
H A DAPFloat.h669 bool *IsExact) const;
1107 bool *IsExact) const { in convertToInteger() argument
1109 convertToInteger(Input, Width, IsSigned, RM, IsExact)); in convertToInteger()
1112 bool *IsExact) const;
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp701 bool IsExact = OldShift->isExact(); in narrowBinOp() local
706 ? Builder.CreateAShr(A, ShAmt, OldShift->getName(), IsExact) in narrowBinOp()
707 : Builder.CreateLShr(A, ShAmt, OldShift->getName(), IsExact); in narrowBinOp()
872 bool IsExact = OldSh->isExact(); in visitTrunc() local
884 return IsExact ? BinaryOperator::CreateExactAShr(A, ShAmt) in visitTrunc()
893 Value *Shift = Builder.CreateAShr(A, ShAmt, "", IsExact); in visitTrunc()
H A DInstCombineMulDivRem.cpp1049 bool IsExact = I.isExact() && match(Op0, m_Exact(m_Value())); in visitUDiv() local
1052 if (IsExact) in visitUDiv()
H A DInstCombineCompares.cpp2314 bool IsExact = Shr->isExact(); in foldICmpShrConstant() local
2321 if (IsExact || Pred == CmpInst::ICMP_SLT || Pred == CmpInst::ICMP_ULT) { in foldICmpShrConstant()
2361 if (Pred == CmpInst::ICMP_ULT || (Pred == CmpInst::ICMP_UGT && IsExact)) { in foldICmpShrConstant()
6397 bool IsExact = false; in foldFCmpIntToFPConst() local
6399 RHS.convertToInteger(RHSCvt, APFloat::rmNearestTiesToEven, &IsExact); in foldFCmpIntToFPConst()
6403 if (!IsExact) { in foldFCmpIntToFPConst()
H A DInstCombineSelect.cpp580 bool IsExact = Ashr->isExact() && cast<Instruction>(TrueVal)->isExact(); in foldSelectICmpLshrAshr() local
581 return Builder.CreateAShr(X, Y, IC->getName(), IsExact); in foldSelectICmpLshrAshr()
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DAttributor.cpp381 auto CheckForNullOnlyAndUndef = [&](Optional<Value *> V, bool IsExact) { in getPotentialCopiesOfMemoryValue() argument
387 NullRequired = !IsExact; in getPotentialCopiesOfMemoryValue()
392 auto CheckAccess = [&](const AAPointerInfo::Access &Acc, bool IsExact) { in getPotentialCopiesOfMemoryValue() argument
397 CheckForNullOnlyAndUndef(Acc.getContent(), IsExact); in getPotentialCopiesOfMemoryValue()
398 if (OnlyExact && !IsExact && !NullOnly && in getPotentialCopiesOfMemoryValue()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUAttributor.cpp591 OAS, [](const AAPointerInfo::Access &Acc, bool IsExact) { in funcRetrievesImplicitKernelArg() argument
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp2015 bool IsExact = false; in ConstantFoldScalarCall1() local
2017 U.convertToInteger(Int, APFloat::rmTowardZero, &IsExact); in ConstantFoldScalarCall1()
2030 bool IsExact; in ConstantFoldScalarCall1() local
2031 U.convertToInteger(Int, APFloat::rmTowardZero, &IsExact); in ConstantFoldScalarCall1()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMachineInstr.cpp521 MIFlags |= MachineInstr::MIFlag::IsExact; in copyFlagsFromInstruction()
1605 if (getFlag(MachineInstr::IsExact)) in print()
H A DMIRPrinter.cpp779 if (MI.getFlag(MachineInstr::IsExact)) in print()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineInstr.h108 IsExact = 1 << 13, // Instruction supports division is enumerator
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstants.cpp2711 isExact ? PossiblyExactOperator::IsExact : 0); in getLShr()
2716 isExact ? PossiblyExactOperator::IsExact : 0); in getAShr()
3487 BO->setIsExact(SubclassOptionalData & PossiblyExactOperator::IsExact); in getAsInstruction()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/AsmParser/
H A DAArch64AsmParser.cpp423 bool IsExact; // describes whether parsed value was exact. member
601 return FPImm.IsExact; in getFPImmIsExact()
2107 CreateFPImm(APFloat Val, bool IsExact, SMLoc S, MCContext &Ctx) { in CreateFPImm() argument
2110 Op->FPImm.IsExact = IsExact; in CreateFPImm()
/llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/
H A DInstrEmitter.cpp1040 MI->setFlag(MachineInstr::MIFlag::IsExact); in EmitMachineNode()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFloat.cpp4694 roundingMode RM, bool *IsExact) const { in convertToInteger()
4697 .convertToInteger(Input, Width, IsSigned, RM, IsExact); in convertToInteger()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCInstrInfo.cpp231 NewMI1.clearFlag(MachineInstr::MIFlag::IsExact); in setSpecialOperandAttr()
236 NewMI2.clearFlag(MachineInstr::MIFlag::IsExact); in setSpecialOperandAttr()
244 MI.clearFlag(MachineInstr::MIFlag::IsExact); in setSpecialOperandAttr()
/llvm-project-15.0.7/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp3020 bool IsExact; in SelectCVTFixedPosOperand() local
3025 FVal.convertToInteger(IntVal, APFloat::rmTowardZero, &IsExact); in SelectCVTFixedPosOperand()
3028 if (!IsExact || !IntVal.isPowerOf2()) return false; in SelectCVTFixedPosOperand()

12