]> granicus.if.org Git - clang/commit
[mips] Support 128-bit int in N32 ABI by overriding TargetInfo::hasInt128Type()
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 24 Apr 2014 16:05:26 +0000 (16:05 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 24 Apr 2014 16:05:26 +0000 (16:05 +0000)
commit4ec7faa64f2613b0e71148036b5b48fbd11b11a7
treef3565c324c433ce5525e3a8d48282aff858420ff
parent4a935ca4ff60e280055897496a593e104d8b7059
[mips] Support 128-bit int in N32 ABI by overriding TargetInfo::hasInt128Type()

Summary: The condition in the base class is rather strange. It says a target has the 128-bit integer type if the size of a pointer is >= 64-bits. N32 has 32-bit pointers but 64-bit integers. I'm a bit reluctant to change this for all targets so this patch makes the method virtual and overrides it for MIPS64.

Reviewers: atanasyan

Reviewed By: atanasyan

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D3472

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@207121 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TargetInfo.h
lib/Basic/Targets.cpp
test/CodeGen/mips-type-sizes-int128.c [new file with mode: 0644]
test/CodeGen/mips-type-sizes.c [new file with mode: 0644]