New method FCmpInst::compare is added, which evaluates the given
compare predicate for constant operands. Interface is made similar to
ICmpInst::compare.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
100 ms | x64 debian > LLVM.Bindings/Go::go.test |
Event Timeline
Comment Actions
LG
llvm/lib/IR/ConstantFold.cpp | ||
---|---|---|
1804 | It's pretty weird that this function accepts the predicate as unsigned short. Would be great to switch it to CmpInst::Predicate (separately). |
It's pretty weird that this function accepts the predicate as unsigned short. Would be great to switch it to CmpInst::Predicate (separately).