builder/llpcBuilderImplArith.cpp
Value* BuilderImplArith::CreateLog(
    Value*        pX,         // [in] Input value X
    const Twine&  instName)   // [in] Name to give instruction(s)
{
    Value* pLog = CreateUnaryIntrinsic(Intrinsic::log2, pX);
    return CreateFMul(pLog, GetLog2(pX->getType()), instName);
}
// =====================================================================================================================
// Create a "log" operation for a scalar or vector float or half.
Create a "log" operation for a scalar or vector float or half.
Create a " log " operation for a scalar or vector float or half .
Value* BuilderImplArith::CreateLog(
    Value*        pX,         
    const Twine&  instName)   
{
    Value* pLog = CreateUnaryIntrinsic(Intrinsic::log2, pX);
    return CreateFMul(pLog, GetLog2(pX->getType()), instName);
}
Value * BuilderImplArith :: CreateLog ( Value * pX , const Twine & instName ) { Value * pLog = CreateUnaryIntrinsic ( Intrinsic :: log2 , pX ) ; return CreateFMul ( pLog , GetLog2 ( pX -> getType ( ) ) , instName ) ; }
Create a "log" operation for a scalar or vector float or half.
Create a " log " operation for a scalar or vector float or half .
// [in] Input value X // [in] Name to give instruction(s)