Change objectsize intrinsic to accept different address spaces.
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Oct 2013 18:06:48 +0000 (18:06 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 7 Oct 2013 18:06:48 +0000 (18:06 +0000)
commitc4a8c07f6489c0081207f722ce0a4502614aef69
tree50744632e73b88c6c8aa2c927ac276d1ca1be817
parentca7b2d08d7b918e5e8e921a837623af962b27d00
Change objectsize intrinsic to accept different address spaces.

Bitcasting everything to i8* won't work. Autoupgrade the old
intrinsic declarations to use the new mangling.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192117 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/llvm/IR/Intrinsics.td
lib/IR/AutoUpgrade.cpp
test/Assembler/auto_upgrade_intrinsics.ll
test/CodeGen/ARM/divmod.ll
test/CodeGen/Generic/crash.ll
test/CodeGen/X86/2011-05-26-UnreachableBlockElim.ll
test/CodeGen/X86/crash.ll
test/CodeGen/X86/object-size.ll
test/Transforms/InstCombine/debuginfo.ll
test/Transforms/InstCombine/objsize-address-space.ll [new file with mode: 0644]
test/Transforms/InstCombine/objsize.ll
test/Transforms/InstCombine/stpcpy_chk-1.ll
test/Transforms/InstCombine/strcpy_chk-1.ll