[PATCH] D141912: [AsmParser] Remove typed pointer auto-detection

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 17 03:38:24 PST 2023


nikic created this revision.
nikic added reviewers: opaque-pointers, arsenm.
Herald added subscribers: luke, Moerafaat, kmitropoulou, zero9178, bzcheeseman, kosarev, pmatos, asb, awarzynski, sdasgup3, wenzhicui, wrengr, ormris, mstorsjo, cota, StephenFan, teijeong, frasercrmck, rdzhabarov, tatianashp, okura, msifontes, jurahul, kuter, Kayjukh, grosul1, Joonsoo, kerbowa, liufengdb, aartbik, mgester, arpith-jacob, csigg, antiagainst, shauheen, rriddle, mehdi_amini, luismarques, apazos, sameer.abuasal, pengfei, s.egerton, dmgreen, Jim, jocewei, PkmX, arphaman, the_o, brucehoult, MartinMosbeck, rogfer01, steven_wu, edward-jones, zzheng, jrtc27, niosHD, sabuasal, simoncook, johnrusso, rbar, javed.absar, kbarton, hiraditya, jgravelle-google, sbc100, jvesely, nemanjai, dschuff, qcolombet.
Herald added a reviewer: bollu.
Herald added a reviewer: aartbik.
Herald added a reviewer: ftynse.
Herald added a reviewer: ributzka.
Herald added a project: All.
nikic requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead, stephenneuendorffer, nicolasvasilache, MaskRay, aheejin, wdng.
Herald added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: dcaballe.
Herald added projects: MLIR, LLVM.

IR is now always parsed in opaque pointer mode, unless `-opaque-pointers=0` is explicitly given. There is no automatic detection of typed pointers anymore.

The `-opaque-pointers=0` option is added to any remaining IR tests that haven't been migrated yet.


https://reviews.llvm.org/D141912

Files:
  llvm/docs/OpaquePointers.rst
  llvm/lib/AsmParser/LLLexer.cpp
  llvm/lib/AsmParser/LLParser.cpp
  llvm/test/CodeGen/AMDGPU/lower-kernel-and-module-lds.ll
  llvm/test/CodeGen/AMDGPU/lower-kernel-lds-super-align.ll
  llvm/test/CodeGen/AMDGPU/lower-kernel-lds.ll
  llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa-memcpy.ll
  llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa-merge.ll
  llvm/test/CodeGen/AMDGPU/lower-lds-struct-aa.ll
  llvm/test/CodeGen/AMDGPU/lower-module-lds-constantexpr.ll
  llvm/test/CodeGen/AMDGPU/lower-module-lds-via-table.ll
  llvm/test/CodeGen/AMDGPU/lower-module-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-diamond-shape.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-call-selected_functions.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-diamond-shape.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-selected_functions.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-indirect-call-signature-match.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-multiple-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-same-lds.ll
  llvm/test/CodeGen/AMDGPU/replace-lds-by-ptr-use-within-phi-inst.ll
  llvm/test/CodeGen/ARM/combine-movc-sub.ll
  llvm/test/CodeGen/ARM/fast-isel-inline-asm.ll
  llvm/test/CodeGen/ARM/inlineasm-X-constraint.ll
  llvm/test/CodeGen/ARM/lsr-setupcost.ll
  llvm/test/CodeGen/ARM/shifter_operand.ll
  llvm/test/CodeGen/Hexagon/addrmode.ll
  llvm/test/CodeGen/Hexagon/autohvx/vector-align-tbaa.ll
  llvm/test/CodeGen/Hexagon/common-gep-inbounds.ll
  llvm/test/CodeGen/Hexagon/swp-epilog-phi7.ll
  llvm/test/CodeGen/PowerPC/aix32-cc-abi-vaarg.ll
  llvm/test/CodeGen/PowerPC/aix32-vector-vararg-callee-split.ll
  llvm/test/CodeGen/PowerPC/aix32-vector-vararg-callee.ll
  llvm/test/CodeGen/PowerPC/aix32-vector-vararg-fixed-callee.ll
  llvm/test/CodeGen/PowerPC/aix64-cc-abi-vaarg.ll
  llvm/test/CodeGen/PowerPC/aix64-vector-vararg-callee.ll
  llvm/test/CodeGen/PowerPC/aix64-vector-vararg-fixed-callee.ll
  llvm/test/CodeGen/PowerPC/common-chain.ll
  llvm/test/CodeGen/PowerPC/fast-isel-branch.ll
  llvm/test/CodeGen/PowerPC/func-alias.ll
  llvm/test/CodeGen/PowerPC/loop-instr-form-prepare.ll
  llvm/test/CodeGen/PowerPC/lsr-postinc-pos.ll
  llvm/test/CodeGen/PowerPC/lsr-profitable-chain.ll
  llvm/test/CodeGen/PowerPC/memcmp-mergeexpand.ll
  llvm/test/CodeGen/PowerPC/memcmpIR.ll
  llvm/test/CodeGen/PowerPC/more-dq-form-prepare.ll
  llvm/test/CodeGen/PowerPC/p10-fi-elim.ll
  llvm/test/CodeGen/PowerPC/ppc64-gep-opt.ll
  llvm/test/CodeGen/PowerPC/pr47373.ll
  llvm/test/CodeGen/PowerPC/prefer-dqform.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/begin-vpt-without-inst.mir
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/fast-fp-loops.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/memcall.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/spillingmove.ll
  llvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-reduce.ll
  llvm/test/CodeGen/Thumb2/mve-float16regloops.ll
  llvm/test/CodeGen/Thumb2/mve-float32regloops.ll
  llvm/test/CodeGen/Thumb2/mve-gather-ptrs.ll
  llvm/test/CodeGen/Thumb2/mve-intrinsics/v2i1-upgrade.ll
  llvm/test/CodeGen/Thumb2/mve-postinc-dct.ll
  llvm/test/CodeGen/WebAssembly/add-prototypes-conflict.ll
  llvm/test/CodeGen/WebAssembly/lower-em-ehsjlj.ll
  llvm/test/CodeGen/WebAssembly/lower-em-exceptions.ll
  llvm/test/CodeGen/WebAssembly/lower-em-sjlj-debuginfo.ll
  llvm/test/CodeGen/WebAssembly/lower-em-sjlj.ll
  llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
  llvm/test/CodeGen/WebAssembly/lower-wasm-sjlj.ll
  llvm/test/CodeGen/WebAssembly/wasmehprepare.ll
  llvm/test/CodeGen/WinEH/wineh-intrinsics-invalid.ll
  llvm/test/CodeGen/X86/StackColoring-use-between-allocas.mir
  llvm/test/CodeGen/X86/addrsig.ll
  llvm/test/CodeGen/X86/atomic-unordered.ll
  llvm/test/CodeGen/X86/atomic64.ll
  llvm/test/CodeGen/X86/catchpad-lifetime.ll
  llvm/test/CodeGen/X86/cfguard-checks.ll
  llvm/test/CodeGen/X86/codegen-prepare-cast.ll
  llvm/test/CodeGen/X86/dag-update-nodetomatch.ll
  llvm/test/CodeGen/X86/fold-call-3.ll
  llvm/test/CodeGen/X86/fold-sext-trunc.ll
  llvm/test/CodeGen/X86/pr32610.ll
  llvm/test/CodeGen/X86/pr38217.ll
  llvm/test/CodeGen/X86/scheduler-asm-moves.mir
  llvm/test/CodeGen/X86/sink-gep-before-mem-inst.ll
  llvm/test/CodeGen/X86/stack-protector-no-return.ll
  llvm/test/CodeGen/X86/statepoint-invoke-ra-inline-spiller.mir
  llvm/test/CodeGen/X86/statepoint-invoke-ra.mir
  llvm/test/CodeGen/X86/tailcall-extract.ll
  llvm/test/CodeGen/X86/tls-loads-control.ll
  llvm/test/CodeGen/X86/tls-loads-control2.ll
  llvm/test/CodeGen/XCore/threads.ll
  llvm/test/DebugInfo/Generic/assignment-tracking/instcombine/alloca-bitcast.ll
  llvm/test/DebugInfo/Generic/assignment-tracking/track-assignments.ll
  llvm/test/DebugInfo/Generic/instcombine-replaced-select-with-operand.ll
  llvm/test/DebugInfo/Generic/mem2reg-promote-alloca-3.ll
  llvm/test/DebugInfo/X86/bitcast-di.ll
  llvm/test/DebugInfo/X86/undef-type-md.ll
  llvm/test/LTO/X86/type-mapping-bug4.ll
  llvm/test/Linker/type-unique-name.ll
  llvm/test/Other/mixed-opaque-ptrs.ll
  llvm/test/SafepointIRVerifier/uses-in-phi-nodes.ll
  llvm/test/Transforms/Attributor/ArgumentPromotion/fp80.ll
  llvm/test/Transforms/Attributor/IPConstantProp/arg-count-mismatch.ll
  llvm/test/Transforms/Attributor/call-simplify-pointer-info.ll
  llvm/test/Transforms/Attributor/heap_to_stack.ll
  llvm/test/Transforms/Attributor/heap_to_stack_gpu.ll
  llvm/test/Transforms/Attributor/liveness.ll
  llvm/test/Transforms/Attributor/misc_crash.ll
  llvm/test/Transforms/Attributor/nocapture-2.ll
  llvm/test/Transforms/Attributor/nodelete.ll
  llvm/test/Transforms/Attributor/nofree.ll
  llvm/test/Transforms/Attributor/norecurse.ll
  llvm/test/Transforms/Attributor/nosync.ll
  llvm/test/Transforms/Attributor/willreturn.ll
  llvm/test/Transforms/ConstantHoisting/AArch64/const-hoist-gep.ll
  llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep-overindexing.ll
  llvm/test/Transforms/ConstantHoisting/ARM/const-hoist-gep.ll
  llvm/test/Transforms/Coroutines/ArgAddr.ll
  llvm/test/Transforms/Coroutines/coro-alloc-with-param-O0.ll
  llvm/test/Transforms/Coroutines/coro-alloc-with-param-O2.ll
  llvm/test/Transforms/Coroutines/coro-alloca-01.ll
  llvm/test/Transforms/Coroutines/coro-alloca-02.ll
  llvm/test/Transforms/Coroutines/coro-alloca-03.ll
  llvm/test/Transforms/Coroutines/coro-alloca-04.ll
  llvm/test/Transforms/Coroutines/coro-alloca-07.ll
  llvm/test/Transforms/Coroutines/coro-async-dyn-align.ll
  llvm/test/Transforms/Coroutines/coro-async-nomerge.ll
  llvm/test/Transforms/Coroutines/coro-async.ll
  llvm/test/Transforms/Coroutines/coro-catchswitch.ll
  llvm/test/Transforms/Coroutines/coro-debug-O2.ll
  llvm/test/Transforms/Coroutines/coro-debug-coro-frame.ll
  llvm/test/Transforms/Coroutines/coro-debug-dbg.addr-swift.ll
  llvm/test/Transforms/Coroutines/coro-debug-dbg.addr.ll
  llvm/test/Transforms/Coroutines/coro-debug-dbg.values-not_used_in_frame.ll
  llvm/test/Transforms/Coroutines/coro-debug-dbg.values.ll
  llvm/test/Transforms/Coroutines/coro-debug-frame-variable.ll
  llvm/test/Transforms/Coroutines/coro-debug.ll
  llvm/test/Transforms/Coroutines/coro-eh-aware-edge-split-00.ll
  llvm/test/Transforms/Coroutines/coro-eh-aware-edge-split-01.ll
  llvm/test/Transforms/Coroutines/coro-eh-aware-edge-split-02.ll
  llvm/test/Transforms/Coroutines/coro-elide-musttail.ll
  llvm/test/Transforms/Coroutines/coro-frame-arrayalloca.ll
  llvm/test/Transforms/Coroutines/coro-frame-reuse-alloca-02.ll
  llvm/test/Transforms/Coroutines/coro-frame-reuse-alloca-04.ll
  llvm/test/Transforms/Coroutines/coro-frame-reuse-alloca-05.ll
  llvm/test/Transforms/Coroutines/coro-frame.ll
  llvm/test/Transforms/Coroutines/coro-heap-elide.ll
  llvm/test/Transforms/Coroutines/coro-padding.ll
  llvm/test/Transforms/Coroutines/coro-param-copy.ll
  llvm/test/Transforms/Coroutines/coro-resume-destroy.ll
  llvm/test/Transforms/Coroutines/coro-retcon-alloca.ll
  llvm/test/Transforms/Coroutines/coro-retcon-frame.ll
  llvm/test/Transforms/Coroutines/coro-retcon-once-value.ll
  llvm/test/Transforms/Coroutines/coro-retcon-resume-values.ll
  llvm/test/Transforms/Coroutines/coro-retcon-resume-values2.ll
  llvm/test/Transforms/Coroutines/coro-retcon.ll
  llvm/test/Transforms/Coroutines/coro-spill-after-phi.ll
  llvm/test/Transforms/Coroutines/coro-spill-corobegin.ll
  llvm/test/Transforms/Coroutines/coro-spill-defs-before-corobegin.ll
  llvm/test/Transforms/Coroutines/coro-spill-promise.ll
  llvm/test/Transforms/Coroutines/coro-split-00.ll
  llvm/test/Transforms/Coroutines/coro-split-02.ll
  llvm/test/Transforms/Coroutines/coro-split-eh-00.ll
  llvm/test/Transforms/Coroutines/coro-split-eh-01.ll
  llvm/test/Transforms/Coroutines/coro-split-hidden.ll
  llvm/test/Transforms/Coroutines/coro-split-sink-lifetime-01.ll
  llvm/test/Transforms/Coroutines/coro-split-sink-lifetime-03.ll
  llvm/test/Transforms/Coroutines/coro-split-sink-lifetime-04.ll
  llvm/test/Transforms/Coroutines/coro-swifterror.ll
  llvm/test/Transforms/Coroutines/coro-zero-alloca.ll
  llvm/test/Transforms/Coroutines/no-suspend.ll
  llvm/test/Transforms/GVN/PRE/load-metadata.ll
  llvm/test/Transforms/GVNHoist/hoist.ll
  llvm/test/Transforms/Inline/AArch64/sve-alloca-merge.ll
  llvm/test/Transforms/Inline/alloca-dbgdeclare.ll
  llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll
  llvm/test/Transforms/Inline/inline-tail.ll
  llvm/test/Transforms/Inline/lifetime-no-datalayout.ll
  llvm/test/Transforms/Inline/lifetime.ll
  llvm/test/Transforms/InstCombine/2011-06-13-nsw-alloca.ll
  llvm/test/Transforms/InstCombine/2011-09-03-Trampoline.ll
  llvm/test/Transforms/InstCombine/2011-10-07-AlignPromotion.ll
  llvm/test/Transforms/InstCombine/bitcast-function.ll
  llvm/test/Transforms/InstCombine/bitcast-store.ll
  llvm/test/Transforms/InstCombine/call-cast-target-inalloca.ll
  llvm/test/Transforms/InstCombine/call-cast-target-preallocated.ll
  llvm/test/Transforms/InstCombine/call.ll
  llvm/test/Transforms/InstCombine/callsite_nonnull_args_through_casts.ll
  llvm/test/Transforms/InstCombine/dbg-cast-of-allocation.ll
  llvm/test/Transforms/InstCombine/debuginfo-dce.ll
  llvm/test/Transforms/InstCombine/do-not-clone-dbg-declare.ll
  llvm/test/Transforms/InstCombine/gep-combine-loop-invariant.ll
  llvm/test/Transforms/InstCombine/intptr2.ll
  llvm/test/Transforms/InstCombine/memset2.ll
  llvm/test/Transforms/LoopDistribute/basic-with-memchecks.ll
  llvm/test/Transforms/LoopDistribute/followup.ll
  llvm/test/Transforms/LoopDistribute/outside-use.ll
  llvm/test/Transforms/LoopDistribute/scev-inserted-runtime-check.ll
  llvm/test/Transforms/LoopReroll/basic.ll
  llvm/test/Transforms/LoopReroll/complex_reroll.ll
  llvm/test/Transforms/LoopReroll/extra_instr.ll
  llvm/test/Transforms/LoopReroll/ptrindvar.ll
  llvm/test/Transforms/LoopStrengthReduce/2011-10-06-ReusePhi.ll
  llvm/test/Transforms/LoopStrengthReduce/2011-12-19-PostincQuadratic.ll
  llvm/test/Transforms/LoopStrengthReduce/AArch64/lsr-memcpy.ll
  llvm/test/Transforms/LoopStrengthReduce/AMDGPU/atomics.ll
  llvm/test/Transforms/LoopStrengthReduce/AMDGPU/different-addrspace-addressing-mode-loops.ll
  llvm/test/Transforms/LoopStrengthReduce/AMDGPU/lsr-invalid-ptr-extend.ll
  llvm/test/Transforms/LoopStrengthReduce/AMDGPU/preserve-addrspace-assert.ll
  llvm/test/Transforms/LoopStrengthReduce/ARM/complexity.ll
  llvm/test/Transforms/LoopStrengthReduce/ARM/ivchain-ARM.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/expander-crashes.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/ivchain-X86.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/lsr-insns-1.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/lsr-insns-2.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/macro-fuse-cmp.ll
  llvm/test/Transforms/LoopStrengthReduce/X86/nested-ptr-addrec.ll
  llvm/test/Transforms/LoopStrengthReduce/addrec-gep-address-space.ll
  llvm/test/Transforms/LoopStrengthReduce/addrec-gep.ll
  llvm/test/Transforms/LoopStrengthReduce/illegal-addr-modes.ll
  llvm/test/Transforms/LoopStrengthReduce/ivchain.ll
  llvm/test/Transforms/LoopStrengthReduce/missing-phi-operand-update.ll
  llvm/test/Transforms/LoopStrengthReduce/nonintegral.ll
  llvm/test/Transforms/LoopStrengthReduce/post-inc-icmpzero.ll
  llvm/test/Transforms/LoopStrengthReduce/post-increment-insertion.ll
  llvm/test/Transforms/LoopStrengthReduce/preserve-gep-loop-variant.ll
  llvm/test/Transforms/LoopStrengthReduce/shl.ll
  llvm/test/Transforms/LoopStrengthReduce/uglygep-address-space.ll
  llvm/test/Transforms/LoopStrengthReduce/uglygep.ll
  llvm/test/Transforms/LoopVectorize/AArch64/deterministic-type-shrinkage.ll
  llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll
  llvm/test/Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/AArch64/strict-fadd.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-extract-last-veclane.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-inductions-unusual-types.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-option.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-optsize.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-reductions.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-tail-folding-unroll.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-gep.ll
  llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-phi.ll
  llvm/test/Transforms/LoopVectorize/AArch64/tail-fold-uniform-memops.ll
  llvm/test/Transforms/LoopVectorize/AArch64/vector-reverse.ll
  llvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll
  llvm/test/Transforms/LoopVectorize/ARM/tail-folding-reduces-vf.ll
  llvm/test/Transforms/LoopVectorize/PowerPC/optimal-epilog-vectorization.ll
  llvm/test/Transforms/LoopVectorize/RISCV/select-cmp-reduction.ll
  llvm/test/Transforms/LoopVectorize/SystemZ/load-scalarization-cost-0.ll
  llvm/test/Transforms/LoopVectorize/X86/consecutive-ptr-uniforms.ll
  llvm/test/Transforms/LoopVectorize/X86/drop-poison-generating-flags.ll
  llvm/test/Transforms/LoopVectorize/X86/pointer-runtime-checks-unprofitable.ll
  llvm/test/Transforms/LoopVectorize/X86/pr51366-sunk-instruction-used-outside-of-loop.ll
  (134 more files...)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141912.489752.patch
Type: text/x-patch
Size: 279162 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230117/524373f1/attachment-0001.bin>


More information about the llvm-commits mailing list