llvm-project/llvm/unittests
bzcheeseman f156b51aec [LLVM][Casting.h] Update dyn_cast machinery to provide more control over how the casting is performed.
This patch expands the expressive capability of the casting utilities in LLVM by introducing several levels of configurability. By creating modular CastInfo classes we can enable projects like MLIR that need more fine-grained control over how a cast is actually performed to retain that control, while making it easy to express the easy cases (like a checked pointer to pointer cast).

The current implementation of Casting.h doesn't make it clear where the entry points for customizing the cast behavior are, so part of the motivation for this patch is adding that documentation. Another part of the motivation is to support using LLVM RTTI with a wider set of use cases, such as nullable value to value casts, or pointer to value casts (as in MLIR).

Reviewed By: lattner, rriddle

Differential Revision: https://reviews.llvm.org/D123901
2022-05-12 00:15:09 -04:00
..
ADT Add missing comparison operators to SmallVector 2022-04-25 18:18:14 -04:00
Analysis [BasicAA] Fix order in which we pass MemoryLocations to alias() 2022-05-10 12:05:38 -07:00
AsmParser [AsmParserTest] Avoid pointer element type accesses (NFC) 2022-01-25 14:31:51 +01:00
BinaryFormat [AIX] identify big archive magic as archive. 2022-01-19 12:18:45 -05:00
Bitcode [X86][MS] Change the alignment of f80 to 16 bytes on Windows 32bits to match with ICC 2022-01-23 09:58:46 +08:00
Bitstream PR51018: Remove explicit conversions from SmallString to StringRef to future-proof against C++23 2021-07-08 13:37:57 -07:00
CodeGen Reapply D124184, [DebugInfo][InstrRef] Add a size operand to DBG_PHI 2022-04-26 15:49:22 +01:00
DebugInfo [llvm-gsymutil][NFC] refactor AddressRange&AddresRanges structures. 2022-04-26 12:00:43 +03:00
Debuginfod [Debuginfod] Don't depend on Content-Length. 2022-03-21 17:27:45 +00:00
Demangle [demangler] No need to space adjacent template closings 2022-05-09 06:14:44 -07:00
ExecutionEngine [ORC] Add an ExecutorAddr::toPtr overload for function types. 2022-05-05 12:37:23 -07:00
FileCheck Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Frontend [OpenMPIRBuilder] Remove ContinuationBB argument from Body callback. 2022-04-26 16:35:01 -05:00
FuzzMutate Revert "[FuzzMutate] Don't insert instructions after musttail call" 2022-03-16 17:29:27 +01:00
IR [CAPI] Expose CastInst::getCastOpcode in C API 2022-04-30 18:40:04 -04:00
InterfaceStub [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
LineEditor
Linker Revert "[OpenMP][NFC] Add missing virtual destructor to silence warning" 2022-03-25 16:07:11 -05:00
MC [DWARF] Add API to get data from MCDwarfLineStr 2022-04-21 14:08:20 -07:00
MI Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MIR [X86] Set Int_MemBarrier as a meta-instruction 2022-03-18 13:12:28 +08:00
ObjCopy Fix for buildbot failure: https://lab.llvm.org/buildbot#builders/110/builds/11051 2022-03-09 14:26:46 +03:00
Object Fix DXBC magic parsing 2022-05-03 14:41:48 -07:00
ObjectYAML
Option [OptTable] Reapply Improve error message output for grouped short options 2021-09-03 11:13:52 +01:00
Passes Cleanup includes: LLVMAnalysis 2022-03-01 18:01:54 +01:00
ProfileData [memprof] Use unknown_function error type for missing functions 2022-05-04 13:02:30 -07:00
Remarks Cleanup includes: DebugInfo & CodeGen 2022-03-12 17:26:40 +01:00
Support [LLVM][Casting.h] Update dyn_cast machinery to provide more control over how the casting is performed. 2022-05-12 00:15:09 -04:00
TableGen [TableGen] Refactor TableGenParseFile to no longer use a callback 2022-05-11 11:55:33 -07:00
Target Add PointerType analysis for DirectX backend 2022-04-25 17:49:43 -05:00
Testing Testing: Make TempFile safe to move; test Temp{Dir,File,Link} 2022-03-01 13:45:51 -08:00
TextAPI Replace PlatformKind with PlatformType. 2022-01-13 09:23:49 -08:00
Transforms [Attributor][FIX] Use AttributorConfig in the unit tests too 2022-04-15 18:36:38 -05:00
XRay Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
tools Cleanup include: DebugInfo/Symbolize 2022-02-24 13:25:11 +01:00
CMakeLists.txt Testing: Make TempFile safe to move; test Temp{Dir,File,Link} 2022-03-01 13:45:51 -08:00
unittest.cfg.in