llvm-project/llvm/test/CodeGen/Generic
Nikita Popov 5548e807b5 [IR] Remove support for extractvalue constant expression
This removes the extractvalue constant expression, as part of
https://discourse.llvm.org/t/rfc-remove-most-constant-expressions/63179.
extractvalue is already not supported in bitcode, so we do not need
to worry about bitcode auto-upgrade.

Uses of ConstantExpr::getExtractValue() should be replaced with
IRBuilder::CreateExtractValue() (if the fact that the result is
constant is not important) or ConstantFoldExtractValueInstruction()
(if it is). Though for this particular case, it is also possible
and usually preferable to use getAggregateElement() instead.

The C API function LLVMConstExtractValue() is removed, as the
underlying constant expression no longer exists. Instead,
LLVMBuildExtractValue() should be used (which will constant fold
or create an instruction). Depending on the use-case,
LLVMGetAggregateElement() may also be used instead.

Differential Revision: https://reviews.llvm.org/D125795
2022-06-28 10:40:17 +02:00
..
MIRDebugify [X86] Update RET/LRET instruction to use the same naming convention as IRET (PR36876). NFC 2021-11-07 15:06:54 +00:00
MIRStripDebug [AVR] Fix up a few accidentally-regressed Generic CodeGen tests recently broken 2021-02-05 04:21:54 +13:00
2002-04-14-UnexpectedUnsignedType.ll
2002-04-16-StackFrameSizeAlignment.ll
2003-05-27-phifcmpd.ll
2003-05-27-useboolinotherbb.ll
2003-05-27-usefsubasbool.ll
2003-05-28-ManyArgs.ll [AVR] Add 'XFAIL' to the remaining failing Generic CodeGen tests for AVR 2021-02-05 04:02:27 +13:00
2003-05-30-BadFoldGEP.ll
2003-05-30-BadPreselectPhi.ll
2003-07-06-BadIntCmp.ll
2003-07-07-BadLongConst.ll
2003-07-08-BadCastToBool.ll
2003-07-29-BadConstSbyte.ll
2004-05-09-LiveVarPartialRegister.ll
2005-01-18-SetUO-InfLoop.ll
2005-04-09-GlobalInPHI.ll
2005-10-18-ZeroSizeStackObject.ll
2005-10-21-longlonggtu.ll
2005-12-01-Crash.ll
2005-12-12-ExpandSextInreg.ll
2006-01-12-BadSetCCFold.ll
2006-01-18-InvalidBranchOpcodeAssert.ll
2006-02-12-InsertLibcall.ll
2006-03-01-dagcombineinfloop.ll
2006-04-26-SetCCAnd.ll
2006-04-28-Sign-extend-bool.ll
2006-05-06-GEP-Cast-Sink-Crash.ll
2006-06-12-LowerSwitchCrash.ll
2006-06-13-ComputeMaskedBitsCrash.ll
2006-06-28-SimplifySetCCCrash.ll
2006-07-03-schedulers.ll
2006-08-30-CoalescerCrash.ll
2006-09-02-LocalAllocCrash.ll
2006-09-06-SwitchLowering.ll
2006-10-27-CondFolding.ll
2006-10-29-Crash.ll
2006-11-20-DAGCombineCrash.ll
2007-01-15-LoadSelectCycle.ll
2007-02-25-invoke.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
2007-04-08-MultipleFrameIndices.ll [AVR] Remove an assertion that causes generic CodeGen tests to fail 2021-02-05 02:05:23 +13:00
2007-04-13-SwitchLowerBadPhi.ll
2007-04-17-lsr-crash.ll
2007-04-27-InlineAsm-X-Dest.ll [Tests] Add elementtype attribute to indirect inline asm operands (NFC) 2022-01-06 14:23:51 +01:00
2007-04-27-LargeMemObject.ll [Tests] Add elementtype attribute to indirect inline asm operands (NFC) 2022-01-06 14:23:51 +01:00
2007-04-30-LandingPadBranchFolding.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
2007-05-03-EHTypeInfo.ll
2007-05-15-InfiniteRecursion.ll
2007-12-17-InvokeAsm.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
2007-12-31-UnusedSelector.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
2008-01-25-dag-combine-mul.ll [XCore][Test] XFAIL tests requiring 8-byte stack alignment. 2021-03-24 09:12:53 +00:00
2008-01-30-LoadCrash.ll
2008-02-04-Ctlz.ll
2008-02-04-ExtractSubvector.ll
2008-02-20-MatchingMem.ll [Tests] Add elementtype attribute to indirect inline asm operands (NFC) 2022-01-06 14:23:51 +01:00
2008-02-25-NegateZero.ll
2008-02-26-NegatableCrash.ll
2008-08-07-PtrToInt-SmallerInt.ll
2009-03-17-LSR-APInt.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
2009-03-29-SoftFloatVectorExtract.ll [AIX] XFAIL 2009-03-29-SoftFloatVectorExtract.ll because of no soft float support 2021-11-10 20:58:26 -05:00
2009-04-10-SinkCrash.ll
2009-04-28-i128-cmp-crash.ll
2009-11-16-BadKillsCrash.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
2010-07-27-DAGCombineCrash.ll
2010-11-04-BigByval.ll [NVPTX][tests] Do not run the test CodeGen/Generic/2010-11-04-BigByval.ll 2022-04-14 14:22:12 -07:00
2010-ZeroSizedArg.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
2011-01-06-BigNumberCrash.ll
2011-07-07-ScheduleDAGCrash.ll
2012-06-08-APIntCrash.ll
2013-03-20-APFloatCrash.ll
2014-02-05-OpaqueConstants.ll [XCore] Remove XFAIL: xcore from passing test. 2021-03-18 15:46:24 +00:00
APIntLoadStore.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
APIntParam.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
APIntSextParam.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
APIntZextParam.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
BasicInstrs.ll
ConstantExprLowering.ll
DbgValueAggregate.ll
ForceStackAlign.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
MachineBranchProb.ll
PBQP.ll
add-with-overflow-24.ll
add-with-overflow-128.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
add-with-overflow.ll
addr-label.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
annotate.ll
asm-large-immediate.ll
assume.ll
badCallArgLRLLVM.ll
badFoldGEP.ll
badarg6.ll
bool-to-double.ll
bswap.ll Re-apply "[lli] Make -jit-kind=orc the default JIT engine" 2021-03-30 12:08:26 +02:00
builtin-expect.ll
call-ret0.ll
call-ret42.ll
call-void.ll
call2-ret0.ll
cast-fp.ll
cfi-sections.ll Revert "[NFC] remove explicit default value for strboolattr attribute in tests" 2021-05-24 19:43:40 +02:00
constindices.ll
crash.ll
csw-debug-assert.ll
dag-combine-crash.ll
dag-combine-ossfuzz-crash.ll [AVR] Add 'XFAIL' to the remaining failing Generic CodeGen tests for AVR 2021-02-05 04:02:27 +13:00
dbg_value.ll
disable-debug-info-print.ll Reland "[AsmPrinter] fix -disable-debug-info option" 2020-11-16 13:34:47 -05:00
div-neg-power-2.ll
donothing.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
dwarf-md5.ll [AIX] Disable tests failing due to lack of .loc and .file directive support 2021-10-08 11:55:12 -04:00
dwarf-source.ll [AIX] Disable tests failing due to lack of .loc and .file directive support 2021-10-08 11:55:12 -04:00
edge-bundles-blockIDs.ll
empty-insertvalue.ll
empty-load-store.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
empty-phi.ll
exception-handling.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
expand-experimental-reductions.ll Use unary CreateShuffleVector if possible 2020-12-30 22:36:08 +09:00
expand-vp.ll [VP][fix] Don't discard masks in reductions 2022-05-25 15:54:45 +02:00
externally_available.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
fast-math-flags.ll [LLParser] Delete temp CallInst when error occurs 2020-06-16 11:41:25 +08:00
fastcall.ll
fneg-fabs.ll
fp-to-int-invalid.ll
fp_to_int.ll
fpoperations.ll
fpowi-promote.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
fwdtwice.ll
global-ret0.ll
hello.ll
i128-addsub.ll
i128-arith.ll
icmp-illegal.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
inline-asm-mem-clobber.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
inline-asm-special-strings.ll [asm] Correctly handle special names in variants 2021-11-15 15:37:09 -05:00
intrinsics.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
invalid-memcpy.ll
isunord.ll
lit.local.cfg
live-debug-label.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
live-debug-vars-undef-use.mir [GlobalISel] Allow DBG_VALUE to use undefined vregs before LiveDebugValues. 2021-12-05 15:55:59 -05:00
llc-start-stop-instance-errors.ll
llc-start-stop.ll [NVPTX][tests] add "XFAIL: nvptx" for some tests 2022-04-26 17:26:56 +03:00
llvm-ct-intrinsics.ll
multiple-return-values-cross-block-with-invoke.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
negintconst.ll
nested-select.ll
opt-codegen-no-target-machine.ll
overflow.ll
overloaded-intrinsic-name.ll [Statepoint] Update gc.statepoint calls in tests with elementtype (NFC) 2022-02-04 14:15:41 +01:00
pr2625.ll
pr3288.ll
pr12507.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
pr24662.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
pr33094.ll [IR] Remove support for extractvalue constant expression 2022-06-28 10:40:17 +02:00
pr49872.ll [Debug-Info] make fortran CHARACTER(1) type as valid unsigned type 2021-04-11 23:17:01 -04:00
print-add.ll
print-arith-fp.ll
print-arith-int.ll
print-int.ll
print-mul-exp.ll
print-mul.ll
print-shift.ll
ptr-annotate.ll [Annotation] Allows annotation to carry some additional constant arguments. 2020-10-26 10:50:05 +01:00
replace-intrinsics-with-veclib-darwin-libsystem-m.ll [VecLib] Add support for vector fns from Darwin's libsystem. 2021-05-10 21:19:58 +01:00
replace-intrinsics-with-veclib.ll [PowerPC] Add pwr7 and pwr10 support to IBM MASSV pass on AIX 2021-07-26 23:21:38 +00:00
ret0.ll
ret42.ll
select-cc.ll
select.ll
selection-dag-determinism.ll [AVR] Fix 14 Generic CodeGen tests by making address space explicit or optional 2021-02-05 04:02:27 +13:00
shift-int64.ll
stacksave-restore.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00
storetrunc-fp.ll
switch-lower-feature.ll
switch-lower.ll
trap.ll
undef-phi.ll
v-split.ll
vector-casts.ll
vector-constantexpr.ll
vector-identity-shuffle.ll
vector.ll
zero-sized-array.ll [NVPTX][tests] Do not run the tests which are not supported by nvptx 2022-04-26 17:26:56 +03:00