IR: make getParamByValType Just Work. NFC.
authorTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 20:37:47 +0000 (20:37 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 5 Jun 2019 20:37:47 +0000 (20:37 +0000)
commit607c8a9d1481312acb421425ac8c8df56a0c9012
tree9c7c049d9488b8242df980d6f4d3a9c892658d62
parent4fb580c31475aa5cf1481927ed6cfefa7a14d5aa
IR: make getParamByValType Just Work. NFC.

Most parts of LLVM don't care whether the byval type is derived from an
explicit Attribute or from the parameter's pointee type, so it makes
sense for the main access function to just return the right value.

The very few users who do care (only BitcodeReader so far) can find out
how it's specified by accessing the Attribute directly.

llvm-svn: 362642
llvm/include/llvm/IR/Argument.h
llvm/include/llvm/IR/Function.h
llvm/include/llvm/IR/InstrTypes.h
llvm/lib/Bitcode/Reader/BitcodeReader.cpp
llvm/lib/Bitcode/Writer/ValueEnumerator.cpp
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/IR/Function.cpp