[all-commits] [llvm/llvm-project] 9f33eb: [clang][RISCV] Introduce command line options for ...

Ming-Yi Lai via All-commits all-commits at lists.llvm.org
Thu Sep 26 03:31:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9f33eb861a3d17fd92163ee894f7cd9f256d03fb
      https://github.com/llvm/llvm-project/commit/9f33eb861a3d17fd92163ee894f7cd9f256d03fb
  Author: Ming-Yi Lai <ming-yi.lai at mediatek.com>
  Date:   2024-09-26 (Thu, 26 Sep 2024)

  Changed paths:
    A clang/include/clang/Basic/CFProtectionOptions.def
    A clang/include/clang/Basic/CFProtectionOptions.h
    M clang/include/clang/Basic/CodeGenOptions.def
    M clang/include/clang/Basic/CodeGenOptions.h
    M clang/include/clang/Basic/LangOptions.def
    M clang/include/clang/Basic/LangOptions.h
    M clang/include/clang/Basic/TargetInfo.h
    M clang/include/clang/Driver/Options.td
    M clang/lib/Basic/TargetInfo.cpp
    M clang/lib/Basic/Targets/RISCV.h
    M clang/lib/CodeGen/CodeGenModule.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    A clang/test/CodeGen/RISCV/riscv-cf-protection.c

  Log Message:
  -----------
  [clang][RISCV] Introduce command line options for RISC-V Zicfilp CFI

This patch enables the following command line flags for RISC-V targets:

+ `-fcf-protection=branch` turns on forward-edge control-flow integrity conditioning
+ `-mcf-branch-label-scheme=unlabeled|func-sig` selects the label scheme used in the forward-edge CFI conditioning



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list