llvm-project/llvm/unittests
Archibald Elliott 3c97f6cab9 [Support] Move getHostNumPhysicalCores to Threading.h
This change is focussed on simplifying `Support/Host.h` to only do
target detection. In this case, this function is close in usage to
existing functions in `Support/Threading.h`, so I moved it into there.
The function is also renamed to `llvm::get_physical_cores()` to match
the style of threading's functions.

The big change here is that now if you have threading disabled,
`llvm::get_physical_cores()` will return -1, as if it had not been able
to work out the right info. This is due to how Threading.cpp includes
OS-specific code/headers. This seems ok, as if threading is disabled,
LLVM should not need to know the number of physical cores.

Differential Revision: https://reviews.llvm.org/D137836
2022-11-29 13:14:13 +00:00
..
ADT [llvm] Use std::size (NFC) 2022-11-26 13:47:32 -08:00
Analysis Restore "[MemProf] ThinLTO summary support" with more fixes 2022-11-16 09:42:41 -08:00
AsmParser [AsmParserTest] Avoid pointer element type accesses (NFC) 2022-01-25 14:31:51 +01:00
BinaryFormat [llvm] Use std::size (NFC) 2022-11-26 13:47:32 -08:00
Bitcode [RISCV] Adjust RV64I data layout by using n32:64 in layout string 2022-10-28 08:27:03 -07:00
Bitstream Reland "[llvm][NFC] Use c++17 style variable type traits" 2022-11-08 14:15:15 +00:00
CodeGen PEI should be able to use backward walk in replaceFrameIndicesBackward. 2022-11-18 15:57:34 +01:00
DebugInfo Use None consistently (NFC) 2022-11-20 00:24:40 -08:00
Debuginfod [llvm] [Debuginfod] Add HTTP Server to Debuginfod library. 2022-07-06 18:56:54 +00:00
Demangle [demangler] No need to space adjacent template closings 2022-05-09 06:14:44 -07:00
ExecutionEngine [MCJIT][test] Use new pass manager API 2022-11-28 12:23:42 -08:00
FileCheck [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Frontend [NFC] Replaced BB->getInstList().front() with BB->front() 2022-11-23 23:55:35 -08:00
FuzzMutate [FuzzMutate] New strategy `ShuffleBlockStrategy` 2022-11-28 17:57:26 -08:00
IR Use PassGate from LLVMContext if any otherwise global one 2022-11-25 15:13:04 +07:00
InterfaceStub [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
LineEditor
Linker Revert "[OpenMP][NFC] Add missing virtual destructor to silence warning" 2022-03-25 16:07:11 -05:00
MC [MCDwarf] Use emplace to avoid move assignment. NFC 2022-08-12 05:05:49 +00:00
MI [LiveIntervals] Find better anchoring end points when repairing ranges 2022-07-18 19:34:43 +01:00
MIR Use llvm::sort instead of std::sort where possible 2022-07-23 15:19:05 +02:00
ObjCopy Fix for buildbot failure: https://lab.llvm.org/buildbot#builders/110/builds/11051 2022-03-09 14:26:46 +03:00
Object [LoongArch] Define the new-style reloc types 2022-08-11 10:37:30 +08:00
ObjectYAML [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Option
Passes Remove unnecessary includes of ManagedStatic.h 2022-07-07 14:29:20 +02:00
ProfileData [llvm] Use std::size (NFC) 2022-11-26 13:47:32 -08:00
Remarks Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
Support [Support] Move getHostNumPhysicalCores to Threading.h 2022-11-29 13:14:13 +00:00
TableGen [llvm] Use value instead of getValue (NFC) 2022-07-13 23:11:56 -07:00
Target [ARM,MVE] Update MVE_VMLA_qr for architecture change. 2022-11-29 08:47:00 +00:00
Testing [llvm][Testing/ADT] Implement `IsStringMapEntry` testing matcher for verifying the entries in a `StringMap`. 2022-09-01 17:30:41 +00:00
TextAPI [llvm] Use std::size (NFC) 2022-11-26 13:47:32 -08:00
Transforms CloneModule: Handling cloning ifuncs 2022-11-23 12:22:06 -05:00
XRay
tools [RISCV][llvm-mca] Use LMUL Instruments to provide more accurate reports on RISCV 2022-11-18 09:55:15 -08:00
CMakeLists.txt [test-suite][cmake] sort unit test targets 2022-05-16 16:55:40 -07:00
unittest.cfg.in