Displaying 1 result from an estimated 1 matches for "bi__builtin_x86_max_qb".
Did you mean:
__builtin_x86_max_qb
2018 Sep 06
2
Adding an trinsics in x86
...g/Basic/BuiltinsX86.def
TARGET_BUILTIN(__builtin_x86_max_qb, "V2iV2iV2i", "ncV:64:", "") //I don't know the meaning of these parameters, just write according to the add function.
In src/tools/clang/lib/CodeGen/CGBuiltin.cpp. in function EmitX86BuiltinExpr
case X86::BI__builtin_x86_max_qb:{
return Builder.CreateCall(CGM.getIntrinsic(Intrinsic::x86_max_qb));
}
Then I do a simple test,just like this:
#include <stdlib.h>
#include <stdio.h>
int main()
{
int a, b, c;
a=1;b=2;
c = int_x86_max_qb(a, b);
}
When I use clang to compile,there is a warning:implicit declaration of f...