Home
last modified time | relevance | path

Searched refs:CRC (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/clang/test/CodeGen/X86/
H A Dx86-crc-builtins.c8 unsigned int test__crc32b(unsigned int CRC, unsigned char V) { in test__crc32b() argument
11 return __crc32b(CRC, V); in test__crc32b()
14 unsigned int test__crc32w(unsigned int CRC, unsigned short V) { in test__crc32w() argument
17 return __crc32w(CRC, V); in test__crc32w()
20 unsigned int test__crc32d(unsigned int CRC, unsigned int V) { in test__crc32d() argument
23 return __crc32d(CRC, V); in test__crc32d()
30 return __crc32q(CRC, V); in test__crc32q()
37 return _mm_crc32_u8(CRC, V); in test_mm_crc32_u8()
43 return _mm_crc32_u16(CRC, V); in test_mm_crc32_u16()
49 return _mm_crc32_u32(CRC, V); in test_mm_crc32_u32()
[all …]
H A Dsse42-builtins.c101 unsigned int test_mm_crc32_u8(unsigned int CRC, unsigned char V) { in test_mm_crc32_u8() argument
104 return _mm_crc32_u8(CRC, V); in test_mm_crc32_u8()
107 unsigned int test_mm_crc32_u16(unsigned int CRC, unsigned short V) { in test_mm_crc32_u16() argument
110 return _mm_crc32_u16(CRC, V); in test_mm_crc32_u16()
113 unsigned int test_mm_crc32_u32(unsigned int CRC, unsigned int V) { in test_mm_crc32_u32() argument
116 return _mm_crc32_u32(CRC, V); in test_mm_crc32_u32()
120 unsigned long long test_mm_crc32_u64(unsigned long long CRC, unsigned long long V) { in test_mm_crc32_u64() argument
123 return _mm_crc32_u64(CRC, V); in test_mm_crc32_u64()
/llvm-project-15.0.7/llvm/lib/Support/
H A DCRC.cpp75 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
76 CRC ^= 0xFFFFFFFFU; in crc32()
78 int TableIdx = (CRC ^ Byte) & 0xff; in crc32()
79 CRC = CRCTable[TableIdx] ^ (CRC >> 8); in crc32()
81 return CRC ^ 0xFFFFFFFFU; in crc32()
87 uint32_t llvm::crc32(uint32_t CRC, ArrayRef<uint8_t> Data) { in crc32() argument
93 CRC = ::crc32(CRC, (const Bytef *)Slice.data(), (uInt)Slice.size()); in crc32()
96 return CRC; in crc32()
104 CRC ^= 0xFFFFFFFFU; // Undo CRC-32 Init. in update()
105 CRC = crc32(CRC, Data); in update()
[all …]
H A DCrashRecoveryContext.cpp36 CrashRecoveryContext *CRC; member
43 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) noexcept in CrashRecoveryContextImpl()
44 : CRC(CRC), Failed(false), SwitchedThread(false), ValidJumpBuffer(false) { in CrashRecoveryContextImpl()
73 if (CRC->DumpStackAndCleanupOnFailure) in HandleCrash()
76 CRC->RetCode = RetCode; in HandleCrash()
136 return CRCI->CRC; in GetCurrent()
493 CrashRecoveryContext *CRC; member
506 Info->Result = Info->CRC->RunSafely(Info->Fn); in RunSafelyOnThread_Dispatch()
518 if (CrashRecoveryContextImpl *CRC = (CrashRecoveryContextImpl *)Impl) in RunSafelyOnThread() local
519 CRC->setSwitchedThread(); in RunSafelyOnThread()
H A DProcess.cpp96 if (CrashRecoveryContext *CRC = CrashRecoveryContext::GetCurrent()) in Exit() local
97 CRC->HandleExit(RetCode); in Exit()
/llvm-project-15.0.7/llvm/unittests/Support/
H A DCrashRecoveryTest.cpp63 CrashRecoveryContext CRC; in TEST() local
64 CRC.registerCleanup(new IncrementGlobalCleanup(&CRC)); in TEST()
65 EXPECT_TRUE(CRC.RunSafely(noop)); in TEST()
71 CrashRecoveryContext CRC; in TEST() local
72 CRC.registerCleanup(new IncrementGlobalCleanup(&CRC)); in TEST()
88 CrashRecoveryContext CRC; in TEST() local
95 CrashRecoveryContext CRC; in TEST() local
98 EXPECT_NE(CRC.RetCode, 0); in TEST()
159 CrashRecoveryContext CRC; in TEST() local
162 if (CRC.RunSafely(abort)) in TEST()
[all …]
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dattr-target-crc32-x86.c13 unsigned int __attribute__((target("crc32"))) test1(unsigned int CRC, unsigned char V) { in test1() argument
14 return __builtin_ia32_crc32qi(CRC, V); in test1()
19 unsigned int __attribute__((target("general-regs-only,crc32"))) test2(unsigned int CRC, unsigned ch… in test2() argument
20 return __builtin_ia32_crc32qi(CRC, V); in test2()
25 unsigned int __attribute__((target("crc32,general-regs-only"))) test3(unsigned int CRC, unsigned ch… in test3() argument
26 return __builtin_ia32_crc32qi(CRC, V); in test3()
31 unsigned int __attribute__((target("sse4.2"))) test4(unsigned int CRC, unsigned char V) { in test4() argument
32 return __builtin_ia32_crc32qi(CRC, V); in test4()
37 unsigned int __attribute__((target("sse4.2,general-regs-only,crc32"))) test5(unsigned int CRC, unsi… in test5() argument
38 return __builtin_ia32_crc32qi(CRC, V); in test5()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsCondMov.td59 def : MipsPat<(select (i32 (setge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
60 (MOVZInst DRC:$T, (SLTOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
61 def : MipsPat<(select (i32 (setuge CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
62 (MOVZInst DRC:$T, (SLTuOp CRC:$lhs, CRC:$rhs), DRC:$F)>;
67 def : MipsPat<(select (i32 (setle CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
68 (MOVZInst DRC:$T, (SLTOp CRC:$rhs, CRC:$lhs), DRC:$F)>;
69 def : MipsPat<(select (i32 (setule CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
70 (MOVZInst DRC:$T, (SLTuOp CRC:$rhs, CRC:$lhs), DRC:$F)>;
82 def : MipsPat<(select (i32 (seteq CRC:$lhs, CRC:$rhs)), DRC:$T, DRC:$F),
83 (MOVZInst DRC:$T, (XOROp CRC:$lhs, CRC:$rhs), DRC:$F)>;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DCRC.h26 uint32_t crc32(uint32_t CRC, ArrayRef<uint8_t> Data);
47 JamCRC(uint32_t Init = 0xFFFFFFFFU) : CRC(Init) {} in CRC() function
52 uint32_t getCRC() const { return CRC; } in getCRC()
55 uint32_t CRC;
/llvm-project-15.0.7/clang/test/Driver/
H A Dx86-mgeneral-regs-only-crc32.c45 unsigned int test__crc32b(unsigned int CRC, unsigned char V) { in test__crc32b() argument
48 return __builtin_ia32_crc32qi(CRC, V); in test__crc32b()
H A Dx86-mcrc32.c33 unsigned int test__crc32b(unsigned int CRC, unsigned char V) { in test__crc32b() argument
36 return __builtin_ia32_crc32qi(CRC, V); in test__crc32b()
/llvm-project-15.0.7/llvm/unittests/Analysis/
H A DLazyCallGraphTest.cpp627 EXPECT_TRUE(ARC.isParentOf(CRC)); in TEST()
639 EXPECT_TRUE(DRC.isChildOf(CRC)); in TEST()
666 EXPECT_EQ(&CRC, CG.lookupRefSCC(C)); in TEST()
824 EXPECT_TRUE(ARC.isParentOf(CRC)); in TEST()
825 EXPECT_TRUE(BRC.isParentOf(CRC)); in TEST()
916 EXPECT_TRUE(ARC.isParentOf(CRC)); in TEST()
917 EXPECT_TRUE(BRC.isParentOf(CRC)); in TEST()
1161 CRC.insertTrivialCallEdge(C1, D3); in TEST()
1180 EXPECT_TRUE(CRC.isParentOf(D2RC)); in TEST()
1183 CRC.removeOutgoingEdge(C1, D2); in TEST()
[all …]
/llvm-project-15.0.7/clang/lib/Basic/
H A DStack.cpp69 llvm::CrashRecoveryContext CRC; in runWithSufficientStackSpaceSlow() local
70 CRC.RunSafelyOnThread([&] { in runWithSufficientStackSpaceSlow()
/llvm-project-15.0.7/llvm/test/MC/Mips/crc/
H A Dmodule-nocrc.s10 # Check that MIPS.abiflags has no CRC flag.
14 # CHECK-OBJ-NOT: CRC (0x8000)
H A Dmodule-crc.s14 # CHECK-OBJ: CRC (0x8000)
/llvm-project-15.0.7/clang/lib/StaticAnalyzer/Frontend/
H A DModelInjector.cpp98 llvm::CrashRecoveryContext CRC; in onBodySynthesis() local
100 CRC.RunSafelyOnThread([&]() { Instance.ExecuteAction(parseModelFile); }, in onBodySynthesis()
/llvm-project-15.0.7/llvm/lib/DebugInfo/PDB/Native/
H A DPDBFileBuilder.cpp181 JamCRC CRC(0); in finalizeMsfLayout() local
182 CRC.update(arrayRefFromStringRef(IS.Content->getBuffer())); in finalizeMsfLayout()
194 Entry.CRC = CRC.getCRC(); in finalizeMsfLayout()
H A DNativeEnumInjectedSources.cpp47 uint32_t getCrc32() const override { return Entry.CRC; } in getCrc32()
/llvm-project-15.0.7/clang/lib/Driver/
H A DJob.cpp399 llvm::CrashRecoveryContext CRC; in Execute() local
400 CRC.DumpStackAndCleanupOnFailure = true; in Execute()
407 if (!CRC.RunSafely([&]() { R = D.CC1Main(Argv); })) { in Execute()
409 return CRC.RetCode; in Execute()
/llvm-project-15.0.7/llvm/tools/llvm-exegesis/lib/
H A DBenchmarkRunner.cpp97 CrashRecoveryContext CRC; in runAndSample() local
99 const bool Crashed = !CRC.RunSafely([this, Counter, ScratchPtr]() { in runAndSample()
112 if (const char *const SigName = strsignal(CRC.RetCode - kSigOffset)) { in runAndSample()
/llvm-project-15.0.7/llvm/test/MC/RISCV/
H A Drv32zbr-valid.s1 # With Bitmanip CRC extension:
H A Drv64zbr-valid.s1 # With Bitmanip CRC extension:
/llvm-project-15.0.7/clang/tools/libclang/
H A DCIndexer.h115 bool RunSafely(llvm::CrashRecoveryContext &CRC, llvm::function_ref<void()> Fn,
H A DIndexing.cpp911 llvm::CrashRecoveryContext CRC; in clang_indexSourceFileFullArgv() local
913 if (!RunSafely(CRC, IndexSourceFileImpl)) { in clang_indexSourceFileFullArgv()
960 llvm::CrashRecoveryContext CRC; in clang_indexTranslationUnit() local
962 if (!RunSafely(CRC, IndexTranslationUnitImpl)) { in clang_indexTranslationUnit()
/llvm-project-15.0.7/llvm/test/MC/LoongArch/Basic/Integer/
H A Dcrc.s1 ## Test valid CRC check instructions.

123