Home
last modified time | relevance | path

Searched refs:ResultT (Results 1 – 14 of 14) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/
H A DTypeSwitch.h86 template <typename T, typename ResultT = void>
87 class TypeSwitch : public detail::TypeSwitchBase<TypeSwitch<T, ResultT>, T> {
89 using BaseT = detail::TypeSwitchBase<TypeSwitch<T, ResultT>, T>;
96 TypeSwitch<T, ResultT> &Case(CallableT &&caseFn) { in Case()
108 [[nodiscard]] ResultT Default(CallableT &&defaultFn) { in Default()
114 [[nodiscard]] ResultT Default(ResultT defaultResult) { in Default()
120 [[nodiscard]] operator ResultT() { in ResultT() function
128 std::optional<ResultT> result;
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DPassManagerInternal.h145 template <typename IRUnitT, typename ResultT> class ResultHasInvalidateMethod {
176 enum { Value = sizeof(check<ResultT>(rank<2>())) == sizeof(EnabledType) };
185 template <typename IRUnitT, typename PassT, typename ResultT,
188 ResultHasInvalidateMethod<IRUnitT, ResultT>::Value>
193 template <typename IRUnitT, typename PassT, typename ResultT,
195 struct AnalysisResultModel<IRUnitT, PassT, ResultT, InvalidatorT, false>
197 explicit AnalysisResultModel(ResultT Result) : Result(std::move(Result)) {}
226 ResultT Result;
231 template <typename IRUnitT, typename PassT, typename ResultT,
233 struct AnalysisResultModel<IRUnitT, PassT, ResultT, InvalidatorT, true>
[all …]
H A DPassManager.h333 template <typename ResultT = ResultConceptT>
349 auto &Result = static_cast<ResultT &>(*RI->second->second); in invalidateImpl()
/freebsd/contrib/llvm-project/lldb/include/lldb/Symbol/
H A DPostfixExpression.h163 template <typename ResultT = void> class Visitor {
167 virtual ResultT Visit(BinaryOpNode &binary, Node *&ref) = 0;
168 virtual ResultT Visit(InitialValueNode &val, Node *&ref) = 0;
169 virtual ResultT Visit(IntegerNode &integer, Node *&) = 0;
170 virtual ResultT Visit(RegisterNode &reg, Node *&) = 0;
171 virtual ResultT Visit(SymbolNode &symbol, Node *&ref) = 0;
172 virtual ResultT Visit(UnaryOpNode &unary, Node *&ref) = 0;
176 ResultT Dispatch(Node *&node) { in Dispatch()
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DBCD.h45 template <typename ResultT, typename ValT>
46 inline ResultT decodePackedBCD(const ValT Val, bool IsSigned = true) {
47 return static_cast<ResultT>(decodePackedBCD(
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/
H A DLegality.h341 template <typename ResultT, typename... ArgsT>
342 ResultT &createLegalityResult(ArgsT &&...Args) { in createLegalityResult()
344 std::unique_ptr<ResultT>(new ResultT(std::move(Args)...))); in createLegalityResult()
345 return cast<ResultT>(*ResultPool.back()); in createLegalityResult()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DContext.h128 template <typename ResultT>
130 const Expr *PtrExpr, ResultT &Result);
H A DContext.cpp146 template <typename ResultT>
148 const Expr *PtrExpr, ResultT &Result) { in evaluateStringRepr()
163 if constexpr (std::is_same_v<ResultT, APValue>) in evaluateStringRepr()
180 if constexpr (std::is_same_v<ResultT, APValue>) { in evaluateStringRepr()
191 assert((std::is_same_v<ResultT, std::string>)); in evaluateStringRepr()
H A DCompiler.cpp663 if (std::optional<PrimType> ResultT = classify(CE)) { in VisitCastExpr() local
668 return this->emitArrayElemPop(*ResultT, 0, CE); in VisitCastExpr()
2687 std::optional<PrimType> ResultT = classify(E->getType()); in VisitCompoundAssignOperator() local
2692 if (!LT || !RT || !ResultT || !LHSComputationT) in VisitCompoundAssignOperator()
2698 if (ResultT == PT_Float || RT == PT_Float) in VisitCompoundAssignOperator()
2782 if (ResultT != LHSComputationT) { in VisitCompoundAssignOperator()
2783 if (!this->emitCast(*LHSComputationT, *ResultT, E)) in VisitCompoundAssignOperator()
2790 return this->emitStoreBitFieldPop(*ResultT, E); in VisitCompoundAssignOperator()
2791 return this->emitStorePop(*ResultT, E); in VisitCompoundAssignOperator()
2794 return this->emitStoreBitField(*ResultT, E); in VisitCompoundAssignOperator()
[all …]
H A DInterpBuiltin.cpp782 PrimType ResultT = *S.getContext().classify(ResultType); in interp__builtin_overflowop() local
864 assignInteger(S, ResultPtr, ResultT, Result); in interp__builtin_overflowop()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DMarshallers.h490 template <typename ResultT, typename ArgT,
491 ResultT (*Func)(ArrayRef<const ArgT *>)>
548 template <typename ResultT, typename ArgT,
549 ResultT (*F)(ArrayRef<const ArgT *>)>
551 ast_matchers::internal::VariadicFunction<ResultT, ArgT, F> Func,
553 : Func(&variadicMatcherDescriptor<ResultT, ArgT, F>),
556 BuildReturnTypeVector<ResultT>::build(RetKinds);
1103 template <typename ResultT, typename ArgT,
1104 ResultT (*Func)(ArrayRef<const ArgT *>)>
1106 ast_matchers::internal::VariadicFunction<ResultT, ArgT, Func> VarFunc,
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DCastValueChecker.cpp483 QualType ResultT = Call.getResultType(); in evalCall() local
484 if (!(ParamT->isPointerType() && ResultT->isPointerType()) && in evalCall()
485 !(ParamT->isReferenceType() && ResultT->isReferenceType())) { in evalCall()
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h121 template <typename ResultT, typename ArgT,
122 ResultT (*Func)(ArrayRef<const ArgT *>)>
124 ResultT operator()() const { return Func({}); }
127 ResultT operator()(const ArgT &Arg1, const ArgsT &... Args) const {
133 ResultT operator()(ArrayRef<ArgT> Args) const {
140 template <typename... ArgsT> ResultT Execute(const ArgsT &... Args) const {
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/Shared/
H A DWrapperFunctionUtils.h292 using ResultT = decltype(Result); in applyAsync() local
293 SendWFR(ResultSerializer<ResultT>::serialize(std::move(Result))); in applyAsync()