angr.analyses.decompiler.structured_codegen.sse_intrinsics¶
Intel-intrinsics view of 128-bit SSE vector AIL: lane kinds of variables, _mm_* names of lane-wise ops, and the
pshufd lane shuffles that VEX spells out as CONCAT trees of 32-bit lane extractions.
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.is_vector_op(expr)¶
A lane-wise BinaryOp over a full 128-bit vector.
- Return type:
- Parameters:
expr (Expression)
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.vector_op_kind(expr)¶
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.vector_op_intrinsic(expr)¶
(intrinsic name, swap operands, operand lane bits) of a lane-wise op, or None when no intrinsic matches exactly.
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.lane_of(expr, lane_bits, any_offset=False)¶
(vector, bit offset) when expr reads one lane_bits-wide, lane-aligned lane of a 128-bit vector through truncations and logical right shifts, e.g.
(uint32_t)((uint64_t)v >> 32)is lane 1 of v. With any_offset, expr may be wider than the lane, and the offset need not be lane-aligned.- Return type:
tuple[Expression,int] |None- Parameters:
expr (Expression)
lane_bits (int)
any_offset (bool)
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.concat_constant(expr)¶
The value of a Concat tree of integer constants, or None.
- angr.analyses.decompiler.structured_codegen.sse_intrinsics.match_shuffle_epi32(expr)¶
(vector, imm8) when a 128-bit Concat tree picks the four 32-bit lanes of one vector: pshufd.
- Return type:
tuple[Expression,int] |None- Parameters:
expr (BinaryOp)
- class angr.analyses.decompiler.structured_codegen.sse_intrinsics.SSEVectorTyping¶
Bases:
objectLane kinds of 128-bit variables: seeded by the lane-wise ops that read or write them and propagated through copies and full-width bitwise ops.
- Parameters:
variable_key (
Callable[[Expression|Statement],SimVariable|None]) – Maps an AIL expression to the (unified) variable it denotes, or None.eligible (
Callable[[SimVariable],bool]) – Whether a variable may be retyped as a vector (its current type is a 128-bit integer).
- __init__(variable_key, eligible)¶
- Parameters:
variable_key (Callable[[Expression | Statement], SimVariable | None])
eligible (Callable[[SimVariable], bool])
- kind(expr)¶
The lane kind of a 128-bit expression, or None if it does not look like a vector.
- Return type:
- Parameters:
expr (Expression)