MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / compileVectorCompareOp

Method compileVectorCompareOp

lib/llvm/compiler.cpp:4781–4790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4779 Context.Int64x2Ty);
4780 }
4781 void compileVectorCompareOp(LLVM::Type VectorTy,
4782 LLVMIntPredicate Predicate) noexcept {
4783 auto RHS = stackPop();
4784 auto LHS = stackPop();
4785 auto Result = Builder.createSExt(
4786 Builder.createICmp(Predicate, Builder.createBitCast(LHS, VectorTy),
4787 Builder.createBitCast(RHS, VectorTy)),
4788 VectorTy);
4789 stackPush(Builder.createBitCast(Result, Context.Int64x2Ty));
4790 }
4791 void compileVectorCompareOp(LLVM::Type VectorTy, LLVMRealPredicate Predicate,
4792 LLVM::Type ResultTy) noexcept {
4793 auto RHS = stackPop();

Callers

nothing calls this directly

Calls 4

createSExtMethod · 0.80
createICmpMethod · 0.80
createBitCastMethod · 0.80
createFCmpMethod · 0.80

Tested by

no test coverage detected