llvm-project/llvm/test/Transforms/RewriteStatepointsForGC
Philip Reames ac81cb7e6d Allow ptrtoint/inttoptr of non-integral pointer types in IR
I don't like landing this change, but it's an acknowledgement of a practical reality.  Despite not having well specified semantics for inttoptr and ptrtoint involving non-integral pointer types, they are used in practice.  Here's a quick summary of the current pragmatic reality:
* I happen to know that the main external user of non-integral pointers has effectively disabled the verifier rules.
* RS4GC (the lowering pass for abstract GC machine model which is the key motivation for non-integral pointers), even supports them.  We just have all the tests using an integral pointer space to let the verifier run.
* Certain idioms (such as alignment checks for alignment N, where any relocation is guaranteed to be N byte aligned) are fine in practice.
* As implemented, inttoptr/ptrtoint are CSEd and are not control dependent.  This means that any code which is intending to check a particular bit pattern at site of use must be wrapped in an intrinsic or external function call.

This change allows them in the Verifier, and updates the LangRef to specific them as implementation dependent.  This allows us to acknowledge current reality while still leaving ourselves room to punt on figuring out "good" semantics until the future.
2021-06-11 13:38:32 -07:00
..
X86 [rs4gc] Fix a latent bug around attribute stripping for intrinsics 2021-04-19 13:14:07 -07:00
base-inference.ll [rs4gc] don't force a conflict for a canonical broadcast 2021-03-16 12:59:06 -07:00
base-inttoptr.ll Allow ptrtoint/inttoptr of non-integral pointer types in IR 2021-06-11 13:38:32 -07:00
base-pointers-1.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-2.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-3.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-4.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
base-pointers-5.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-6.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-7.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-8.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-9.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-10.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-11.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-12.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers-13.ll [rs4gc/tests] Remove use of internal debug flags 2021-03-06 09:20:02 -08:00
base-pointers.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
base-vector-inseltpoison.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
base-vector.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
basic.ll
basics.ll
call-gc-result.ll
check_traversal_order-inseltpoison.ll
check_traversal_order.ll
codegen-cond.ll
constants.ll Allow ptrtoint/inttoptr of non-integral pointer types in IR 2021-06-11 13:38:32 -07:00
deopt-intrinsic-cconv.ll
deopt-intrinsic.ll
deopt-lowering-attrs.ll [tests] Update an autogen test for format change 2021-03-06 09:49:27 -08:00
deref-pointers.ll
drop-invalid-metadata.ll
gc-relocate-creation.ll
intrinsics.ll [RS4GC] Introduce intrinsics to get base ptr and offset 2021-05-27 09:14:14 +07:00
invokes.ll
leaf-function.ll
libcall.ll
live-vector-nosplit-inseltpoison.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
live-vector-nosplit.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
liveness-basics.ll
meetBDVState-hangs.ll [RS4GC] Fix hang on infinite loop 2021-03-23 12:54:51 +07:00
patchable-statepoints.ll
preprocess.ll
relocate-invoke-result.ll
relocation.ll
rematerialize-derived-pointers.ll [rs4gc] don't duplicate existing values which are provably base pointers 2021-03-16 12:51:21 -07:00
rewrite-invoke.ll
scalar-base-vector-2.ll
scalar-base-vector.ll [rs4gc] don't force a conflict for a canonical broadcast 2021-03-16 12:59:06 -07:00
statepoint-attrs.ll
statepoint-calling-conventions.ll
statepoint-coreclr.ll
statepoint-format.ll
strip-invalid-attributes.ll [rs4gc] Strip memory related attributes consistently 2021-05-14 07:54:56 -07:00
two-invokes-one-landingpad.ll
unordered-atomic-memcpy-no-deopt.ll
unordered-atomic-memcpy.ll
unreachable-regression.ll
vector-bitcast.ll