Displaying 1 result from an estimated 1 matches for "targetlibraryfunct".
2019 Apr 24
2
Accelerating TLI getLibFunc lookups
...ppy with that, and don't see
that changing in the future, that gives us an opportunity. We could
cache the libfunc ID into the Function itself, just like we do for
intrinsics today.
What would that look like in practice you ask?
* We'd move the definition of LibFunc into
include/IR/TargetLibraryFunctions.h/def (only the enum, not the rest
of TLI)
* We'd change IntID field in GlobalValue to be union of IntrinsicID
and LibFunc.
* We'd change Function::getIntrisicID to check the HasLLVMReservedName
flag (already existing), and return Intrinsic::not_inrinsic value if
not...