Clang - LLVM, как установить UnsafeFPMath в DAGcombiner.cpp - PullRequest
0 голосов
/ 05 декабря 2018

Я пытаюсь добавить небезопасную оптимизацию fp, и я хотел бы включить ее, если установлен UnsafeFPMath.Я не смог найти способ включить этот флаг.у кого-то есть идея?Я пытался использовать переключатель во многих отношениях, но безуспешно.

/// UnsafeFPMath - This flag is enabled when the
/// -enable-unsafe-fp-math flag is specified on the command line.  When
/// this flag is off (the default), the code generator is not allowed to
/// produce results that are "less precise" than IEEE allows.  This includes
/// use of X86 instructions like FSIN and FCOS instead of libcalls.
/// UnsafeFPMath implies LessPreciseFPMAD.
unsigned UnsafeFPMath : 1;

Спасибо!

...