×

Technologies for indirectly calling vector functions

  • US 10,642,587 B2
  • Filed: 03/11/2016
  • Issued: 05/05/2020
  • Est. Priority Date: 03/11/2016
  • Status: Active Grant
First Claim
Patent Images

1. A compute device for indirectly calling vector functions, the compute device comprising:

  • a memory device to store source code;

    a compiler module to;

    identify, in the source code, declarations of scalar functions;

    identify, in the source code, a set of declarations of vector variants for each of the scalar functions;

    generate a vector variant address map for each set of vector variants, wherein each vector variant address map includes addresses of the vector variants of the associated scalar function;

    generate an offset map for each scalar function, wherein each offset map includes offsets into the associated vector variant address map and each offset is to a different one of the vector variant addresses;

    identify, in the source code, an indirect call to the scalar functions, wherein the indirect call is to be vectorized;

    determine, based on a context of the indirect call, a vector variant to be called; and

    store, in object code and in association with the indirect call, an offset into one of the vector variant address maps based on (i) the determined vector variant to be called and (ii) the offset map that corresponds to each scalar function.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×