Custom lifter-specified intrinsics

Open
#7,222 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

No implementation files, tests, or entry points are identified. Begin with linked issues #7038, #6211, #6942, and #3847 to understand the existing synthetic-builtin approach and define the desired IL representation and completion criteria before implementation.

Written by the indexing model from the issue text.

Description

Component: Core Effort: High Impact: High

What is the feature you'd like to have?
I want lifters (and by extension, workflow actions) to be able to use intrinsic expressions beyond those specified by the Architecture. I want some way to represent an arbitrary/unspecified operation in the IL with a name/type/semantics as an IL expression.

Is your feature request related to a problem?
I want to write a pass transforming a pattern of IL expressions into a macro-like function, but it is not an existing symbol in the binary nor is it represented by an existing IL operation.

Are any alternative solutions acceptable?
Synthetic builtins are using a custom segment, adding symbols to every binary view, and using regular IL_CALL instructions. This has the downside of now you have to define these symbols in every binary view (and it's not very extensible).

Additional Information:
See also:

  • #7038
  • #6211
  • #6942
  • #3847
Dominant language
C++
Stars
1.3k
Forks
298
Avg merge
5d 5h
Merged PRs (30d)
19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Vector35/binaryninja-api

All issues in Vector35/binaryninja-api

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.