| commit | 7c9eba90ffdcf35dc587c65b9ff9a5bf3ac0acc7 | [log] [tgz] |
|---|---|---|
| author | Tim Northover <tnorthover@apple.com> | Mon Jul 25 21:01:29 2016 +0000 |
| committer | Tim Northover <tnorthover@apple.com> | Mon Jul 25 21:01:29 2016 +0000 |
| tree | 1e4ec47f97b7d3a92ab432176a8b0dd911faf72c | |
| parent | e2e0067352c7e92159f6d29531ac652959349b2d [diff] |
GlobalISel: add generic casts to IRTranslator This adds LLVM's 3 main cast instructions (inttoptr, ptrtoint, bitcast) to the IRTranslator. The first two are direct translations (with 2 MachineInstr types each). Since LLT discards information, a bitcast might become trivial and we emit a COPY in those cases instead. llvm-svn: 276690