Home
last modified time | relevance | path

Searched refs:Tmp (Results 1 – 25 of 189) sorted by relevance

12345678

/llvm-project-15.0.7/libc/test/src/__support/CPP/
H A Dstringview_test.cpp176 StringView Tmp("abc"); in TEST() local
177 ASSERT_FALSE(Tmp.consume_front("###")); in TEST()
178 ASSERT_TRUE(Tmp.consume_front("ab")); in TEST()
179 ASSERT_TRUE(Tmp.equals("c")); in TEST()
183 StringView Tmp("abc"); in TEST() local
184 ASSERT_FALSE(Tmp.consume_back("###")); in TEST()
185 ASSERT_TRUE(Tmp.consume_back("bc")); in TEST()
186 ASSERT_TRUE(Tmp.equals("a")); in TEST()
190 StringView Tmp("abca"); in TEST() local
191 ASSERT_TRUE(Tmp.find_first_of('a') == 0); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPSInt.cpp26 APInt Tmp(NumBits, Str, /*radix=*/10); in APSInt() local
28 unsigned MinBits = Tmp.getMinSignedBits(); in APSInt()
30 Tmp = Tmp.trunc(std::max<unsigned>(1, MinBits)); in APSInt()
31 *this = APSInt(Tmp, /*isUnsigned=*/false); in APSInt()
34 unsigned ActiveBits = Tmp.getActiveBits(); in APSInt()
36 Tmp = Tmp.trunc(std::max<unsigned>(1, ActiveBits)); in APSInt()
37 *this = APSInt(Tmp, /*isUnsigned=*/true); in APSInt()
H A DError.cpp164 std::string Tmp = toString(unwrap(Err)); in LLVMGetErrorMessage() local
165 char *ErrMsg = new char[Tmp.size() + 1]; in LLVMGetErrorMessage()
166 memcpy(ErrMsg, Tmp.data(), Tmp.size()); in LLVMGetErrorMessage()
167 ErrMsg[Tmp.size()] = '\0'; in LLVMGetErrorMessage()
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dunion-tbaa1.c12 vect32 Tmp[4][2]; in fred() local
22 Tmp[*Index][0].uw = Arr[*Index][0] * Num; in fred()
26 Tmp[*Index][1].uw = Arr[*Index][1] * Num; in fred()
33 Vec[0] = Tmp[*Index][0].uh[1]; in fred()
39 Vec[1] = Tmp[*Index][1].uh[1]; in fred()
40 bar(Tmp); in fred()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/performance/
H A Dmove-const-arg.cpp290 struct Tmp { struct
291 Tmp();
292 Tmp(int &&a);
293 Tmp(int v1, int &&a);
294 Tmp(const char *&&s);
301 Tmp t; in testMethods()
303 Tmp t1(std::move(a)); in testMethods()
306 Tmp t2(a, std::move(a)); in testMethods()
310 Tmp t3(std::move(s)); in testMethods()
314 Tmp t4(std::move(*obj)); in testMethods()
[all …]
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/bugprone/
H A Deasily-swappable-parameters-relatedness.cpp24 struct Tmp { struct
128 Tmp Temp; in passthrough6()
136 Tmp Temp1, Temp2; in passthrough7()
143 Tmp{}.f(B); in passthrough8()
171 bool compare2(Tmp T1, Tmp T2) { // NO-WARN: Same member accessed. in compare2()
177 bool compare3(Tmp T1, Tmp T2) { // WARN: Different member accessed. in compare3()
192 if (K + 2 > Tmp{}.f(K)) in rangeBreaker()
/llvm-project-15.0.7/llvm/lib/Target/SystemZ/
H A DSystemZCopyPhysRegs.cpp82 Register Tmp = MRI->createVirtualRegister(&SystemZ::GR32BitRegClass); in visitMBB() local
84 BuildMI(MBB, MI, DL, TII->get(SystemZ::IPM), Tmp); in visitMBB()
86 BuildMI(MBB, MI, DL, TII->get(SystemZ::EAR), Tmp).addReg(SrcReg); in visitMBB()
87 MI->getOperand(1).setReg(Tmp); in visitMBB()
92 Register Tmp = MRI->createVirtualRegister(&SystemZ::GR32BitRegClass); in visitMBB() local
93 MI->getOperand(0).setReg(Tmp); in visitMBB()
94 BuildMI(MBB, MBBI, DL, TII->get(SystemZ::SAR), DstReg).addReg(Tmp); in visitMBB()
/llvm-project-15.0.7/llvm/unittests/ADT/
H A DFunctionExtrasTest.cpp78 unique_function<long()> Tmp; in TEST() local
82 Tmp = std::move(C1); in TEST()
83 EXPECT_EQ(Tmp(), 1); in TEST()
87 Tmp = std::move(C2); in TEST()
88 EXPECT_EQ(Tmp(), 3); in TEST()
92 Tmp = std::move(C3); in TEST()
93 EXPECT_EQ(Tmp(), 6); in TEST()
97 Tmp = std::move(C4); in TEST()
98 EXPECT_EQ(Tmp(), 10); in TEST()
102 Tmp = std::move(C5); in TEST()
[all …]
/llvm-project-15.0.7/compiler-rt/include/orc/
H A Dc_api.h110 char *Tmp = (char *)malloc(Size); in __orc_rt_CreateCWrapperFunctionResultFromRange() local
111 memcpy(Tmp, Data, Size); in __orc_rt_CreateCWrapperFunctionResultFromRange()
112 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromRange()
142 char *Tmp = (char *)malloc(strlen(ErrMsg) + 1); in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError() local
143 strcpy(Tmp, ErrMsg); in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
144 R.Data.ValuePtr = Tmp; in __orc_rt_CreateCWrapperFunctionResultFromOutOfBandError()
/llvm-project-15.0.7/compiler-rt/test/hwasan/TestCases/
H A Dcustom-memmove.c12 char *Tmp = (char *)malloc(N); in memmove() local
17 Tmp[I] = S[I]; in memmove()
19 D[I] = Tmp[I]; in memmove()
21 free(Tmp); in memmove()
/llvm-project-15.0.7/llvm/lib/MC/
H A DSubtargetFeature.cpp30 SmallVector<StringRef, 3> Tmp; in Split() local
31 S.split(Tmp, ',', -1, false /* KeepEmpty */); in Split()
32 V.reserve(Tmp.size()); in Split()
33 for (StringRef T : Tmp) in Split()
/llvm-project-15.0.7/lldb/test/API/commands/expression/xvalue/
H A Dmain.cpp1 struct Tmp struct
6 Tmp foo() { return Tmp(); } in foo() argument
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DManagedStatic.h87 void *Tmp = Ptr.load(std::memory_order_acquire);
88 if (!Tmp)
97 void *Tmp = Ptr.load(std::memory_order_acquire);
98 if (!Tmp)
/llvm-project-15.0.7/llvm/unittests/Support/DynamicLibrary/
H A DDynamicLibraryTest.cpp42 } Tmp; in FuncPtr() local
43 Tmp.P = Ptr; in FuncPtr()
44 return Tmp.F; in FuncPtr()
50 } Tmp; in PtrFunc() local
51 Tmp.F = Func; in PtrFunc()
52 return Tmp.P; in PtrFunc()
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Dpoison_in_signal.cpp17 struct Tmp { struct
19 ~Tmp() {} in ~Tmp() argument
24 volatile Tmp t; in Poison()
/llvm-project-15.0.7/llvm/include/llvm/Transforms/Utils/
H A DEvaluator.h88 for (auto &Tmp : AllocaTmps) in ~Evaluator()
92 if (!Tmp->use_empty()) in ~Evaluator()
93 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); in ~Evaluator()
/llvm-project-15.0.7/clang/tools/scan-build/libexec/
H A Dccc-analyzer594 my $Tmp = $Arg;
598 $Tmp = $Arg . $ARGV[$i];
600 push @CompileOpts,$Tmp;
640 my $Tmp = $Arg;
644 $Tmp = $Arg . $ARGV[$i];
646 push @CompileOpts,$Tmp;
647 push @LinkOpts,$Tmp;
/llvm-project-15.0.7/llvm/include/llvm/ExecutionEngine/
H A DJITSymbol.h197 JITSymbolFlags Tmp = LHS; variable
198 Tmp &= RHS;
199 return Tmp;
204 JITSymbolFlags Tmp = LHS; variable
205 Tmp |= RHS;
206 return Tmp;
/llvm-project-15.0.7/llvm/lib/Target/WebAssembly/
H A DWebAssemblyLowerBrUnless.cpp190 Register Tmp = MRI.createVirtualRegister(&WebAssembly::I32RegClass); in runOnMachineFunction() local
191 BuildMI(MBB, &MI, MI.getDebugLoc(), TII.get(WebAssembly::EQZ_I32), Tmp) in runOnMachineFunction()
193 MFI.stackifyVReg(MRI, Tmp); in runOnMachineFunction()
194 Cond = Tmp; in runOnMachineFunction()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DLlvmState.cpp72 SmallVector<char, 16> Tmp; in canAssemble() local
73 raw_svector_ostream OS(Tmp); in canAssemble()
77 return Tmp.size() > 0; in canAssemble()
/llvm-project-15.0.7/compiler-rt/lib/fuzzer/
H A DFuzzerIOPosix.cpp135 char *Tmp = new char[FileName.size() + 1]; in DirName() local
136 memcpy(Tmp, FileName.c_str(), FileName.size() + 1); in DirName()
137 std::string Res = dirname(Tmp); in DirName()
138 delete [] Tmp; in DirName()
H A DFuzzerIOWindows.cpp379 std::string Tmp; in TmpDir() local
380 Tmp.resize(MAX_PATH + 1); in TmpDir()
381 DWORD Size = GetTempPathA(Tmp.size(), &Tmp[0]); in TmpDir()
386 Tmp.resize(Size); in TmpDir()
387 return Tmp; in TmpDir()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DIntrinsicEmitter.cpp361 unsigned Tmp = 0; in EncodeFixedType() local
364 case MVT::iPTRAny: ++Tmp; LLVM_FALLTHROUGH; in EncodeFixedType()
365 case MVT::vAny: ++Tmp; LLVM_FALLTHROUGH; in EncodeFixedType()
366 case MVT::fAny: ++Tmp; LLVM_FALLTHROUGH; in EncodeFixedType()
367 case MVT::iAny: ++Tmp; LLVM_FALLTHROUGH; in EncodeFixedType()
439 unsigned Tmp = 0; in UpdateArgCodes() local
446 ++Tmp; in UpdateArgCodes()
449 ++Tmp; in UpdateArgCodes()
452 ++Tmp; in UpdateArgCodes()
455 ++Tmp; in UpdateArgCodes()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/orc/
H A Dsimple_packed_serialization.h158 SPSTagT Tmp = Value; in serialize() local
160 swapByteOrder(Tmp); in serialize()
161 return OB.write(reinterpret_cast<const char *>(&Tmp), sizeof(Tmp)); in serialize()
165 SPSTagT Tmp; in deserialize() local
166 if (!IB.read(reinterpret_cast<char *>(&Tmp), sizeof(Tmp))) in deserialize()
169 swapByteOrder(Tmp); in deserialize()
170 Value = Tmp; in deserialize()
/llvm-project-15.0.7/libcxx/benchmarks/
H A Dallocation.bench.cpp89 PointerList *Tmp = Next; in BM_AllocateOnly() local
90 Next = Tmp->Next; in BM_AllocateOnly()
91 AllocWrapper::Deallocate(Tmp, alloc_size); in BM_AllocateOnly()

12345678