[PATCH] D44727: [RISCV] Extend getTargetDefines for RISCVTargetInfo

Kito Cheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 28 00:11:42 PDT 2018


kito-cheng updated this revision to Diff 140046.
kito-cheng retitled this revision from "[RISCV] Implement getTargetDefines, handleTargetFeatures and hasFeature for RISCVTargetInfo" to "[RISCV] Extend getTargetDefines for RISCVTargetInfo".
kito-cheng edited the summary of this revision.
kito-cheng added a comment.

Changes:

- Define __riscv_atomic, __riscv_flen, __riscv_fdiv and __riscv_fsqr, and add test for those marco.
- Handle riscv, riscv32 and riscv64 in RISCVTargetInfo::hasFeature.
- Fix several coding style issue.
- Breaking the long lines in test case.
- Add comment for RISCVTargetInfo::hasFeature.


Repository:
  rC Clang

https://reviews.llvm.org/D44727

Files:
  lib/Basic/Targets/RISCV.cpp
  lib/Basic/Targets/RISCV.h
  test/Preprocessor/riscv-target-features.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44727.140046.patch
Type: text/x-patch
Size: 5326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180328/a0db3894/attachment.bin>


More information about the cfe-commits mailing list