llvm-project/llvm/unittests
Michael Kruse 616f77172f [OpenMPIRBuilder] Detect and fix ambiguous InsertPoints for createParallel.
When a Builder methods accepts multiple InsertPoints, when both point to
the same position, inserting instructions at one position will "move" the
other after the inserted position since the InsertPoint is pegged to the
instruction following the intended InsertPoint. For instance, when
creating a parallel region at Loc and passing the same position as AllocaIP,
creating instructions at Loc will "move" the AllocIP behind the Loc
position.

To avoid this ambiguity, add an assertion checking this condition and
fix the unittests.

In case of AllocaIP, an alternative solution could be to implicitly
split BasicBlock at InsertPoint, using the first as AllocaIP, the second
for inserting the instructions themselves. However, this solution is
specific to AllocaIP since AllocaIP will always have to be first. Hence,
this is an argument to generally handling ambiguous InsertPoints as API
sage error.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D117226
2022-01-20 10:13:44 -06:00
..
ADT [ADT] Fix Optional<> with llvm::is_trivially_move_constructible 2022-01-18 08:37:43 -08:00
Analysis [MemoryBuiltins] Demote isMallocLikeFn to implementation routine since last use has been removed 2022-01-18 15:24:52 -08:00
AsmParser
BinaryFormat [AIX] identify big archive magic as archive. 2022-01-19 12:18:45 -05:00
Bitcode Revert "[X86][MS] Change the alignment of f80 to 16 bytes on Windows 32bits to match with ICC" 2022-01-15 10:54:38 +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 Revert "GlobalISel: Add G_ASSERT_ALIGN hint instruction" 2022-01-14 04:50:07 +00:00
DebugInfo [CodeGen][Debuginfo][NFC] Refactor DIE values SizeOf method to not depend on AsmPrinter. 2022-01-12 13:15:26 +03:00
Debuginfod [Debuginfod] Fix debuginfod unit test when $HOME is not writable. 2021-12-15 22:13:13 +00:00
Demangle [Demangle] Add support for D types back referencing 2022-01-12 21:57:31 +00:00
ExecutionEngine [ORC] Allow JITDylib::getDFSLinkOrder and friends to fail for defunct JITDylibs. 2022-01-20 17:45:32 +11:00
FileCheck Bump googletest to 1.10.0 2021-05-14 19:16:31 +02:00
Frontend [OpenMPIRBuilder] Detect and fix ambiguous InsertPoints for createParallel. 2022-01-20 10:13:44 -06:00
FuzzMutate [FuzzMutate] Add mutator to modify instruction flags. 2021-01-23 19:05:20 +00:00
IR [debug-info] Add support for llvm.dbg.addr in DIBuilder. 2022-01-18 18:26:50 -08:00
InterfaceStub [ifs][elfabi] Merge llvm-ifs/elfabi tools 2021-07-19 11:23:19 -07:00
LineEditor
Linker [RGT] Recode more unreachable assertions and tautologies 2021-03-19 09:17:22 -07:00
MC Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MI Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
MIR [MachineVerifier] Make TiedOpsRewritten computable in MIRParser 2021-12-07 02:25:15 +00:00
Object [VE] Support R_VE_RELATIVE 2021-12-13 20:28:35 +09:00
ObjectYAML
Option [OptTable] Reapply Improve error message output for grouped short options 2021-09-03 11:13:52 +01:00
Passes [AIX] Enable rtl for plugins test 2021-10-22 12:08:22 -04:00
ProfileData Coverage: Fix iterated type for LineCoverageIterator 2021-11-16 14:39:30 -08:00
Remarks
Support [clang] support relative roots to vfs overlays 2022-01-19 10:13:06 -08:00
TableGen Make TableGenGlobalISel an object library 2021-06-05 15:04:33 +02:00
Target [AArch64] Always add -tune-cpu argument to -cc1 driver 2021-10-19 14:57:51 +01:00
TextAPI Replace PlatformKind with PlatformType. 2022-01-13 09:23:49 -08:00
Transforms [DebugInfo] ValueMapper impl for DIArgList respects IgnoreMissingLocals 2022-01-17 17:17:32 +00:00
XRay Put back the trailing commas on TYPED_TEST_SUITE 2021-05-17 14:14:13 +02:00
tools [X86] Update RET/LRET instruction to use the same naming convention as IRET (PR36876). NFC 2021-11-07 15:06:54 +00:00
CMakeLists.txt [llvm] [Debuginfo] Debuginfod client library. 2021-12-06 21:52:38 +00:00
unittest.cfg.in