主权项 |
1. A computer program product to generate Single Instruction Multiple Data (SIMD) code from code statements that include non-isomorphic code statements, the computer program product comprising one or more computer-readable tangible non-transitory storage devices and program instructions stored on at least one of the one or more computer-readable tangible non-transitory storage devices, the program instructions comprising:
program instructions to receive, by one or more processors, a plurality of code statements, each code statement having one or more operators in a respective operator order, each operator having a type and associated operands, wherein the operands include: linearized address expressions, non-linearized address expressions, memory adjacent operands, and non-memory adjacent operands, and at least two code statements of the plurality of code statements having an operator of the same type in a different operator order position; program instructions to identify, by the one or more processors, a first operator order position for the operators of the same type in each of the at least two code statements; for each of the at least two code statements, program instructions to generate, by the one or more processors, compiled code for operators and their associated operands having operator order positions preceding the first operator order positions; and program instructions to generate, by the one or more processors, SIMD code from the compiled code at least based on the identified first operator order positions, the corresponding operator type, and the operands associated with the operator type at the identified operator order positions. |