forked from OSchip/llvm-project
17ce89fa80
Currently adding attribute no_sanitize("bounds") isn't disabling -fsanitize=local-bounds (also enabled in -fsanitize=bounds). The Clang frontend handles fsanitize=array-bounds which can already be disabled by no_sanitize("bounds"). However, instrumentation added by the BoundsChecking pass in the middle-end cannot be disabled by the attribute. The fix is very similar to D102772 that added the ability to selectively disable sanitizer pass on certain functions. In this patch, if no_sanitize("bounds") is provided, an additional function attribute (NoSanitizeBounds) is attached to IR to let the BoundsChecking pass know we want to disable local-bounds checking. In order to support this feature, the IR is extended (similar to D102772) to make Clang able to preserve the information and let BoundsChecking pass know bounds checking is disabled for certain function. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D119816 |
||
---|---|---|
.. | ||
README | ||
emacs.el | ||
llvm-mode.el | ||
tablegen-mode.el |
README
-*- llvm/utils/emacs/README -*- These are syntax highlighting files for the Emacs and XEmacs editors. Included are: * llvm-mode.el Syntax highlighting mode for LLVM assembly files. To use, add this code to your ~/.emacs : (setq load-path (cons (expand-file-name "path-to-llvm/utils/emacs") load-path)) (require 'llvm-mode) * tablegen-mode.el Syntax highlighting mode for TableGen description files. To use, add this code to your ~/.emacs: (setq load-path (cons (expand-file-name "path-to-llvm/utils/emacs") load-path)) (require 'tablegen-mode) Note: If you notice missing or incorrect syntax highlighting, please contact <llvm-bugs [at] lists.llvm.org>; if you wish to provide a patch to improve the functionality, it will be most appreciated. Thank you.