summaryrefslogtreecommitdiff
path: root/include/clang/Basic/TargetOptions.h
diff options
context:
space:
mode:
authorMandeep Singh Grang <mgrang@codeaurora.org>2018-02-25 03:58:23 +0000
committerMandeep Singh Grang <mgrang@codeaurora.org>2018-02-25 03:58:23 +0000
commit40332b100c42439e8e2c800f7d8d5456b087616b (patch)
tree308991a70b87481825d8d16a4f9321257db6e4b2 /include/clang/Basic/TargetOptions.h
parent7234e8f0a4cb3139903e71a944c4369ec65d4b35 (diff)
downloadclang-40332b100c42439e8e2c800f7d8d5456b087616b.tar.gz
[RISCV] Enable __int128_t and __uint128_t through clang flag
Summary: If the flag -fforce-enable-int128 is passed, it will enable support for __int128_t and __uint128_t types. This flag can then be used to build compiler-rt for RISCV32. Reviewers: asb, kito-cheng, apazos, efriedma Reviewed By: asb, efriedma Subscribers: shiva0217, efriedma, jfb, dschuff, sdardis, sbc100, jgravelle-google, aheejin, rbar, johnrusso, simoncook, jordy.potman.lists, sabuasal, niosHD, cfe-commits Differential Revision: https://reviews.llvm.org/D43105 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/TargetOptions.h')
-rw-r--r--include/clang/Basic/TargetOptions.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Basic/TargetOptions.h b/include/clang/Basic/TargetOptions.h
index 60becfb8ee..fbcba0dcbe 100644
--- a/include/clang/Basic/TargetOptions.h
+++ b/include/clang/Basic/TargetOptions.h
@@ -60,6 +60,9 @@ public:
/// \brief The list of OpenCL extensions to enable or disable, as written on
/// the command line.
std::vector<std::string> OpenCLExtensionsAsWritten;
+
+ /// \brief If given, enables support for __int128_t and __uint128_t types.
+ bool ForceEnableInt128;
};
} // end namespace clang