[PATCH] D43105: [RISCV] Enable __int128_t and uint128_t through clang flag

Ana Pazos via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 14 15:04:23 PST 2018


apazos added inline comments.


================
Comment at: lib/Basic/Targets/RISCV.h:85
+  bool hasInt128Type(const LangOptions &Opts) const override {
+    return Opts.UseInt128;
+  }
----------------
kito-cheng wrote:
> efriedma wrote:
> > Maybe make this a cross-platform flag, rather than riscv-specific?
> +1, then we can make all other 32 bits target to able easier support float128 too :)
OK... so we can move the option check to the TargetInfo class, and the target-specific implementation overrides it as needed.


Repository:
  rC Clang

https://reviews.llvm.org/D43105





More information about the cfe-commits mailing list