Home
last modified time | relevance | path

Searched refs:TR (Results 1 – 25 of 56) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/
H A DGenericTaintChecker.cpp524 using TR = GenericTaintRule; in initTaintRules() typedef
538 {{"scanf"}, TR::Source({{}, 1})}, in initTaintRules()
539 {{"scanf_s"}, TR::Source({{}, {1}})}, in initTaintRules()
552 {{"gethostname"}, TR::Source({{0}})}, in initTaintRules()
557 {{"getlogin_r"}, TR::Source({{0}})}, in initTaintRules()
573 {{"getline"}, TR::Prop({{2}}, {{0}})}, in initTaintRules()
620 {{"qsort"}, TR::Prop({{0}}, {{0}})}, in initTaintRules()
621 {{"qsort_r"}, TR::Prop({{0}}, {{0}})}, in initTaintRules()
656 TR::Prop({{1, 2}}, {{0}})}, in initTaintRules()
658 TR::Prop({{1, 2}}, {{0}})}, in initTaintRules()
[all …]
H A DBoolAssignmentChecker.cpp63 const TypedValueRegion *TR = in checkBind() local
66 if (!TR) in checkBind()
69 QualType valTy = TR->getValueType(); in checkBind()
/llvm-project-15.0.7/libcxx/test/std/experimental/memory/memory.resource/memory.resource.public/
H A Ddtor.pass.cpp51 using TR = TestResource; in main() typedef
52 memory_resource* M = new TR(42); in main()
53 assert(TR::resource_alive == 1); in main()
54 assert(TR::resource_constructed == 1); in main()
55 assert(TR::resource_destructed == 0); in main()
59 assert(TR::resource_alive == 0); in main()
60 assert(TR::resource_constructed == 1); in main()
61 assert(TR::resource_destructed == 1); in main()
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dintrinsics-library.cpp97 template <typename TR, typename... TA> using FuncPointer = TR (*)(TA...);
107 template <typename TR>
110 if constexpr (TR::category == TypeCategory::Complex || in CheckFloatingPointIssues()
111 TR::category == TypeCategory::Real) { in CheckFloatingPointIssues()
142 template <typename FuncType, typename TR, typename... TA, size_t... I>
148 host::HostType<TR> hostResult{}; in ApplyHostFunctionHelper()
149 Scalar<TR> result{}; in ApplyHostFunctionHelper()
156 result = FlushSubnormals<TR>(host::CastHostToFortran<TR>(hostResult)); in ApplyHostFunctionHelper()
159 result = host::CastHostToFortran<TR>(hostResult); in ApplyHostFunctionHelper()
162 CheckFloatingPointIssues<TR>(hostFPE, result); in ApplyHostFunctionHelper()
[all …]
H A Dfold-implementation.h83 template <typename TR, typename... TA>
92 return GetScalarConstantValue<TR>( in GetHostRuntimeWrapper()
464 FunctionRef<TR> &&funcRef, WrapperType<TR, TA...> func, in FoldElementalIntrinsicHelper() argument
494 std::vector<Scalar<TR>> results; in FoldElementalIntrinsicHelper()
515 return Expr<TR>{Constant<TR>{len, std::move(results), std::move(shape)}}; in FoldElementalIntrinsicHelper()
517 return Expr<TR>{Constant<TR>{std::move(results), std::move(shape)}}; in FoldElementalIntrinsicHelper()
520 return Expr<TR>{std::move(funcRef)}; in FoldElementalIntrinsicHelper()
523 template <typename TR, typename... TA>
525 FunctionRef<TR> &&funcRef, ScalarFunc<TR, TA...> func) { in FoldElementalIntrinsic() argument
529 template <typename TR, typename... TA>
[all …]
H A Dfold-integer.cpp517 using TR = ResultType<decltype(kx)>; in FoldIntrinsicFunction() typedef
518 return FoldElementalIntrinsic<T, TR>(context, std::move(funcRef), in FoldIntrinsicFunction()
519 ScalarFunc<T, TR>([&](const Scalar<TR> &x) { in FoldIntrinsicFunction()
570 using TR = typename std::decay_t<decltype(x)>::Result; in FoldIntrinsicFunction() typedef
571 return FoldElementalIntrinsic<T, TR>(context, std::move(funcRef), in FoldIntrinsicFunction()
572 &Scalar<TR>::template EXPONENT<Scalar<T>>); in FoldIntrinsicFunction()
846 using TR = typename std::decay_t<decltype(x)>::Result; in FoldIntrinsicFunction() typedef
847 return Expr<T>{Scalar<TR>::MAXEXPONENT}; in FoldIntrinsicFunction()
869 using TR = typename std::decay_t<decltype(x)>::Result; in FoldIntrinsicFunction() typedef
870 return Expr<T>{Scalar<TR>::MINEXPONENT}; in FoldIntrinsicFunction()
/llvm-project-15.0.7/clang/lib/AST/Interp/
H A DInterp.h847 template <PrimType TR, PrimType TL, class T = typename PrimConv<TR>::T>
862 template <PrimType TL, PrimType TR, typename T = typename PrimConv<TL>::T>
872 template <PrimType TL, PrimType TR, typename T = typename PrimConv<TL>::T>
897 template <PrimType TL, PrimType TR>
899 const auto &RHS = S.Stk.pop<typename PrimConv<TR>::T>(); in Shr()
906 return ShiftLeft<TL, TR>(S, OpPC, LHS, Trunc<TR, TL>(S, OpPC, Bits, -RHS)); in Shr()
908 return ShiftRight<TL, TR>(S, OpPC, LHS, Trunc<TR, TL>(S, OpPC, Bits, RHS)); in Shr()
912 template <PrimType TL, PrimType TR>
914 const auto &RHS = S.Stk.pop<typename PrimConv<TR>::T>(); in Shl()
921 return ShiftRight<TL, TR>(S, OpPC, LHS, Trunc<TR, TL>(S, OpPC, Bits, -RHS)); in Shl()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonEarlyIfConv.cpp203 const TargetRegisterClass *DRC, unsigned PredR, unsigned TR,
805 .addReg(TR, 0, TSR) in buildMux()
818 unsigned TR = 0, TSR = 0, FR = 0, FSR = 0, SR = 0, SSR = 0; in updatePhiNodes() local
824 TR = RO.getReg(), TSR = RO.getSubReg(); in updatePhiNodes()
832 if (TR == 0) in updatePhiNodes()
833 TR = SR, TSR = SSR; in updatePhiNodes()
837 assert(TR || FR); in updatePhiNodes()
840 if (TR && FR) { in updatePhiNodes()
844 FP.PredR, TR, TSR, FR, FSR); in updatePhiNodes()
845 } else if (TR) { in updatePhiNodes()
[all …]
/llvm-project-15.0.7/llvm/test/Transforms/InstCombine/
H A Dshift-shift.ll195 ; CHECK-NEXT: [[TR:%.*]] = shl i8 [[X_TR]], 6
196 ; CHECK-NEXT: ret i8 [[TR]]
207 ; CHECK-NEXT: [[TR:%.*]] = shl i8 [[X_TR]], 6
208 ; CHECK-NEXT: ret i8 [[TR]]
220 ; CHECK-NEXT: [[TR:%.*]] = trunc i32 [[RT]] to i8
221 ; CHECK-NEXT: [[LT:%.*]] = shl i8 [[TR]], 3
236 ; CHECK-NEXT: [[LT:%.*]] = shl i8 [[TR]], 5
250 ; CHECK-NEXT: call void @use8(i8 [[TR]])
251 ; CHECK-NEXT: [[LT:%.*]] = shl i8 [[TR]], 3
265 ; CHECK-NEXT: call void @use8(i8 [[TR]])
[all …]
H A Dshift-amount-reassociation-with-truncation-shl.ll220 ; CHECK-NEXT: [[TR:%.*]] = trunc i32 [[SHL]] to i16
221 ; CHECK-NEXT: call void @use16(i16 [[TR]])
222 ; CHECK-NEXT: [[R:%.*]] = shl i16 [[TR]], 4
269 ; CHECK-NEXT: [[TR:%.*]] = trunc i32 [[A]] to i16
270 ; CHECK-NEXT: [[SH:%.*]] = lshr i16 [[TR]], 6
H A Dcompare-signs.ll226 ; CHECK-NEXT: [[TR:%.*]] = trunc <2 x i17> [[SH]] to <2 x i13>
227 ; CHECK-NEXT: store <2 x i13> [[TR]], <2 x i13>* [[P2:%.*]], align 4
258 ; CHECK-NEXT: [[TR:%.*]] = trunc i32 [[SH]] to i8
259 ; CHECK-NEXT: [[R:%.*]] = icmp slt i8 [[TR]], 1
H A Dtrunc.ll967 ; CHECK-NEXT: [[TR:%.*]] = trunc <8 x i16> [[SHUF]] to <8 x i8>
968 ; CHECK-NEXT: ret <8 x i8> [[TR]]
978 ; CHECK-NEXT: [[TR:%.*]] = add <2 x i8> [[TMP1]], <i8 0, i8 127>
979 ; CHECK-NEXT: ret <2 x i8> [[TR]]
989 ; CHECK-NEXT: [[TR:%.*]] = mul <2 x i8> [[TMP1]], <i8 0, i8 127>
990 ; CHECK-NEXT: ret <2 x i8> [[TR]]
1000 ; CHECK-NEXT: [[TR:%.*]] = sub <2 x i8> <i8 0, i8 127>, [[TMP1]]
1001 ; CHECK-NEXT: ret <2 x i8> [[TR]]
H A Dtrunc-inseltpoison.ll967 ; CHECK-NEXT: [[TR:%.*]] = trunc <8 x i16> [[SHUF]] to <8 x i8>
968 ; CHECK-NEXT: ret <8 x i8> [[TR]]
978 ; CHECK-NEXT: [[TR:%.*]] = add <2 x i8> [[TMP1]], <i8 0, i8 127>
979 ; CHECK-NEXT: ret <2 x i8> [[TR]]
989 ; CHECK-NEXT: [[TR:%.*]] = mul <2 x i8> [[TMP1]], <i8 0, i8 127>
990 ; CHECK-NEXT: ret <2 x i8> [[TR]]
1000 ; CHECK-NEXT: [[TR:%.*]] = sub <2 x i8> <i8 0, i8 127>, [[TMP1]]
1001 ; CHECK-NEXT: ret <2 x i8> [[TR]]
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp33 if (const TypedRegion *TR = dyn_cast_or_null<TypedRegion>(MR)) in assumeInternal() local
34 T = TR->getLocationType(); in assumeInternal()
H A DRegionStore.cpp1139 const TypedValueRegion *TR = cast<TypedValueRegion>(baseR); in VisitCluster() local
1140 QualType T = TR->getValueType(); in VisitCluster()
1421 if (const TypedRegion *TR = dyn_cast<TypedRegion>(MR)) in getBinding() local
1422 T = TR->getLocationType()->getPointeeType(); in getBinding()
2382 QualType Ty = TR->getValueType(); in bind()
2384 return bindArray(B, TR, V); in bind()
2386 return bindStruct(B, TR, V); in bind()
2388 return bindVector(B, TR, V); in bind()
2390 return bindAggregate(B, TR, V); in bind()
2806 cast<StackArgumentsSpaceRegion>(TR->getSuperRegion()); in VisitAddedToCluster()
[all …]
H A DSVals.cpp177 QualType VisitTypedRegion(const TypedRegion *TR) { in VisitTypedRegion() argument
178 return TR->getLocationType(); in VisitTypedRegion()
H A DDynamicType.cpp52 if (const auto *TR = dyn_cast<TypedRegion>(MR)) in getDynamicTypeInfo() local
53 return DynamicTypeInfo(TR->getLocationType(), /*CanBeSub=*/false); in getDynamicTypeInfo()
H A DStore.cpp106 if (const auto *TR = dyn_cast<TypedValueRegion>(R)) { in castRegion() local
107 QualType ObjTy = Ctx.getCanonicalType(TR->getValueType()); in castRegion()
/llvm-project-15.0.7/clang/lib/AST/
H A DExprClassification.cpp38 assert(!TR->isReferenceType() && "Expressions can't have reference type."); in ClassifyImpl()
45 if (TR->isFunctionType() || TR == Ctx.OverloadTy) in ClassifyImpl()
50 else if (TR->isVoidType() && !TR.hasQualifiers()) in ClassifyImpl()
/llvm-project-15.0.7/clang/include/clang/Basic/
H A DSourceLocation.h289 void setTokenRange(bool TR) { IsTokenRange = TR; }
/llvm-project-15.0.7/flang/include/flang/Common/
H A Dformat.h42 L, O, P, RC, RD, RN, RP, RU, RZ, S, SP, SS, T, TL, TR, X, Z, Colon, Slash, in ENUM_CLASS() argument
368 Advance(TokenKind::TR); in NextToken()
770 case TokenKind::TR: in Check()
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp2263 for (auto &TR : Transfers) { in ExtendRanges() local
2264 assert(!TR.TransferInst->isTerminator() && in ExtendRanges()
2266 MachineBasicBlock *MBB = TR.TransferInst->getParent(); in ExtendRanges()
2267 const VarLoc &VL = VarLocIDs[TR.LocationID]; in ExtendRanges()
2269 MBB->insertAfterBundle(TR.TransferInst->getIterator(), MI); in ExtendRanges()
2274 for (auto &TR : EntryValTransfers) { in ExtendRanges() local
2275 MachineInstr *TRInst = const_cast<MachineInstr *>(TR.first); in ExtendRanges()
2279 const VarLoc &VL = VarLocIDs[TR.second]; in ExtendRanges()
/llvm-project-15.0.7/flang/include/flang/Parser/
H A Dformat-specification.h79 TR, enumerator
/llvm-project-15.0.7/clang/include/clang/AST/
H A DASTNodeTraverser.h238 if (auto *TR = dyn_cast<concepts::TypeRequirement>(R)) { in Visit()
239 if (!TR->isSubstitutionFailure()) in Visit()
240 Visit(TR->getType()->getType().getTypePtr()); in Visit()
/llvm-project-15.0.7/llvm/test/CodeGen/PowerPC/
H A D2013-07-01-PHIElimBug.mir58 # Original TR (and 2013-07-01-PHIElimBug.ll) was about verifier errors for bb.3.

123