]> granicus.if.org Git - clang/commit
LLVM IR: Generate new-style byval-with-Type from Clang
authorTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 21:12:14 +0000 (21:12 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 21:12:14 +0000 (21:12 +0000)
commit5f8238ecfe244483a89bc146624dd8b552f5810d
tree6ea422d2c80a56710c929d3525bc470a9d5615ce
parent328e48e472b390958371ae73501517c55d613569
LLVM IR: Generate new-style byval-with-Type from Clang

LLVM IR recently added a Type parameter to the byval Attribute, so that
when pointers become opaque and no longer have an element type the
information will still be present in IR.

For now the Type parameter is optional (which is why Clang didn't need
this change at the time), but it will become mandatory soon.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@362652 91177308-0d34-0410-b5e6-96231b3b80d8
49 files changed:
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGCall.cpp
test/CodeGen/aapcs-align.cpp
test/CodeGen/arm-aapcs-vfp.c
test/CodeGen/arm-arguments.c
test/CodeGen/arm-byval-align.c
test/CodeGen/blocks.c
test/CodeGen/complex-builtins.c
test/CodeGen/complex-libcalls.c
test/CodeGen/le32-arguments.c
test/CodeGen/mingw-long-double.c
test/CodeGen/nvptx-abi.c
test/CodeGen/ppc64-align-struct.c
test/CodeGen/ppc64le-aggregates.c
test/CodeGen/ppc64le-f128Aggregates.c
test/CodeGen/regcall.c
test/CodeGen/regparm-struct.c
test/CodeGen/renderscript.c
test/CodeGen/sparc-arguments.c
test/CodeGen/sparcv8-abi.c
test/CodeGen/stdcall-fastcall.c
test/CodeGen/struct-passing.c
test/CodeGen/vectorcall.c
test/CodeGen/wasm-arguments.c
test/CodeGen/x86_32-arguments-darwin.c
test/CodeGen/x86_32-arguments-iamcu.c
test/CodeGen/x86_32-arguments-linux.c
test/CodeGen/x86_32-arguments-realign.c
test/CodeGen/x86_64-arguments-nacl.c
test/CodeGen/x86_64-arguments.c
test/CodeGenCUDA/kernel-args-alignment.cu
test/CodeGenCUDA/kernel-args.cu
test/CodeGenCXX/amdgcn-func-arg.cpp
test/CodeGenCXX/microsoft-abi-cdecl-method-sret.cpp
test/CodeGenCXX/microsoft-abi-sret-and-byval.cpp
test/CodeGenCXX/ms-inline-asm-fields.cpp
test/CodeGenCXX/regcall.cpp
test/CodeGenCXX/regparm.cpp
test/CodeGenCXX/stmtexpr.cpp
test/CodeGenCXX/wasm-args-returns.cpp
test/CodeGenCXX/x86_32-arguments.cpp
test/CodeGenCXX/x86_64-arguments-avx.cpp
test/CodeGenCXX/x86_64-arguments-nacl-x32.cpp
test/CodeGenCXX/x86_64-arguments.cpp
test/CodeGenOpenCL/addr-space-struct-arg.cl
test/CodeGenOpenCL/amdgpu-abi-struct-coerce.cl
test/CodeGenOpenCL/cl20-device-side-enqueue.cl
test/CodeGenOpenCL/kernels-have-spir-cc-by-default.cl
test/OpenMP/nvptx_unsupported_type_codegen.cpp