Check whether the given call has no side‐effects. Specifically checks for math routimes which sometimes set errno.

Synopsis

Declared in <llvm/Analysis/ConstantFolding.h>

bool
isMathLibCallNoop(
    CallBase const* Call,
    TargetLibraryInfo const* TLI);

Return Value

True if the math libcall is a no‐op with no side effects.

Parameters

Name

Description

Call

Call to inspect for math‐lib side effects.

TLI

Target library info used to recognize math libcalls.

Created with MrDocs