Skip to content

Commit

Permalink
Handle intrinsics systematically (#3422)
Browse files Browse the repository at this point in the history
Since compiler intrinsics are handled both in codegen and
instrumentation, it would make sense to have a single source of truth
with regard to which intrinsics we support and update it systematically.

This PR introduces an `Intrinsic` enum, which allows to parse intrinsic
name into one of the predefined variants we support or a catch-all
`Unsupported` variant.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
  • Loading branch information
artemagvanian committed Aug 9, 2024
1 parent bec5fd1 commit 6553afa
Show file tree
Hide file tree
Showing 6 changed files with 1,393 additions and 646 deletions.
414 changes: 173 additions & 241 deletions kani-compiler/src/codegen_cprover_gotoc/codegen/intrinsic.rs

Large diffs are not rendered by default.

Loading

0 comments on commit 6553afa

Please sign in to comment.