Home
last modified time | relevance | path

Searched refs:isConst (Results 1 – 25 of 46) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/include/llvm/XRay/
H A DGraph.h198 template <bool isConst, bool isOut> class InOutEdgeView {
200 using iterator = NeighborEdgeIteratorT<isConst, isOut>;
202 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
204 std::conditional_t<isConst, const EdgeMapT, EdgeMapT>;
273 template <bool isConst> class VertexView {
276 std::conditional_t<isConst, ConstVertexIterator, VertexIterator>;
278 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
310 template <bool isConst> class EdgeView {
313 std::conditional_t<isConst, ConstEdgeIterator, EdgeIterator>;
315 using GraphT = std::conditional_t<isConst, const Graph, Graph>;
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DGlobalMerge.cpp161 bool isConst, unsigned AddrSpace) const;
166 const BitVector &GlobalSet, Module &M, bool isConst,
263 Module &M, bool isConst, in doMerge() argument
275 if (!GlobalMergeGroupByUse || (Opt.MergeConstAggressive && isConst)) { in doMerge()
277 return doMerge(Globals, AllGlobals, M, isConst, AddrSpace); in doMerge()
438 return doMerge(Globals, AllGlobals, M, isConst, AddrSpace); in doMerge()
473 Changed |= doMerge(Globals, UGS.Globals, M, isConst, AddrSpace); in doMerge()
481 bool isConst, unsigned AddrSpace) const { in doMerge() argument
560 M, MergedTy, isConst, MergedLinkage, MergedInit, MergedName, nullptr, in doMerge()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/
H A DSmartPointerAccessorCaching.cpp53 if (!MD->isConst() || MD->getNumParams() != 0) in pointerLikeReturnType()
78 if (!MD->isConst() || MD->getNumParams() != 0 || in findReturnType()
190 if (MD->getOverloadedOperator() == OO_Star && MD->isConst() && in getCanonicalSmartPointerLikeOperatorCallee()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp203 return FPT->isConst(); in AST_MATCHER()
396 const auto NonConstMethod = cxxMethodDecl(unless(isConst())); in findDirectMutation()
604 anyOf(allOf(hasMethod(allOf(hasName("begin"), unless(isConst()))), in findRangeLoopMutation()
605 unless(hasMethod(allOf(hasName("begin"), isConst())))), in findRangeLoopMutation()
606 allOf(hasMethod(allOf(hasName("end"), unless(isConst()))), in findRangeLoopMutation()
607 unless(hasMethod(allOf(hasName("end"), isConst()))))); in findRangeLoopMutation()
H A DIssueHash.cpp61 if (TargetT->isConst()) in GetSignature()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/
H A DInstrRefBasedImpl.h437 bool isConst() const { return ID.IsConst && !isUndef(); }
474 if (ID.isConst())
635 if (getDbgOpID(Idx).isConst() != Other.getDbgOpID(Idx).isConst())
H A DInstrRefBasedImpl.cpp381 if (ID.isConst()) { in loadVarInloc()
2876 if (FirstValOp.isConst() || OutValOp.isConst()) in pickVPHILoc()
/freebsd/contrib/llvm-project/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp337 callee(cxxMethodDecl(parameterCountIs(0), isConst()))); in isZeroParamConstMemberCall()
342 callee(cxxMethodDecl(parameterCountIs(0), isConst()))); in isZeroParamConstMemberOperatorCall()
346 return cxxMemberCallExpr(callee(cxxMethodDecl(unless(isConst())))); in isNonConstMemberCall()
350 return cxxOperatorCallExpr(callee(cxxMethodDecl(unless(isConst())))); in isNonConstMemberOperatorCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPURegBankLegalizeRules.cpp636 Predicate isConst([](const MachineInstr &MI) -> bool { in RegBankLegalizeRules() local
663 auto isUL = !isAtomicMMO && isUniMMO && (isConst || !isVolatileMMO) && in RegBankLegalizeRules()
664 (isConst || isInvMMO || isNoClobberMMO); in RegBankLegalizeRules()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DEvalEmitter.cpp212 if (!Ptr.isZero() && !Ptr.isConst() && Ptr.isBlockPointer() && in emitRet()
H A DPointer.h574 bool isConst() const { in isConst() function
H A DInterp.cpp394 Ptr.isConst()) in CheckExtern()
570 if (!Ptr.isConst() || Ptr.isMutable()) in CheckConst()
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DBuiltins.h275 bool isConst(unsigned ID) const { in isConst() function
/freebsd/contrib/llvm-project/clang/lib/Serialization/
H A DTemplateArgumentHasher.cpp304 Hash.AddInteger(T->isConst()); in VisitFunctionType()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/CodeView/
H A DRecordName.cpp186 if (Ptr.isConst()) in visitKnownRecord()
H A DTypeDumpVisitor.cpp369 W->printNumber("IsConst", Ptr.isConst()); in visitKnownRecord()
H A DTypeRecordMapping.cpp398 if (Record.isConst()) in visitKnownRecord()
/freebsd/contrib/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
H A DWebAssemblyMCTargetDesc.h286 inline bool isConst(unsigned Opc) { in isConst() function
/freebsd/contrib/llvm-project/clang/lib/ExtractAPI/
H A DDeclarationFragments.cpp916 if (Method->isConst()) in getFragmentsForCXXMethod()
950 if (ConversionFunction->isConst()) in getFragmentsForConversionFunction()
979 if (Method->isConst()) in getFragmentsForOverloadedOperator()
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DODRHash.cpp715 AddBoolean(Method->isConst()); in AddFunctionDecl()
1075 Hash.AddBoolean(T->isConst()); in VisitFunctionType()
H A DODRDiagsEmitter.cpp1133 const bool FirstConst = FirstMethod->isConst(); in diagnoseMismatch()
1134 const bool SecondConst = SecondMethod->isConst(); in diagnoseMismatch()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp420 REGISTER_MATCHER(isConst); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/
H A DLowerToLLVM.cpp1234 const bool isConst = false; in setupRegionInitializedLLVMGlobalOp() local
1248 op, llvmType, isConst, linkage, symbol, nullptr, alignment, addrSpace, in setupRegionInitializedLLVMGlobalOp()
1288 const bool isConst = false; in matchAndRewrite() local
1329 op, llvmType, isConst, linkage, symbol, init.value_or(mlir::Attribute()), in matchAndRewrite()
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonBitSimplify.cpp2930 bool isConst(unsigned Reg) const;
2972 bool HexagonLoopRescheduling::isConst(unsigned Reg) const { in isConst() function in HexagonLoopRescheduling
3116 if (isConst(PR)) in processLoop()
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/
H A DTypeRecord.h326 bool isConst() const { return !!(Attrs & uint32_t(PointerOptions::Const)); } in isConst() function

12