ΒΆllvm::Value* getWithType(llvm::Value& V,
                         llvm::Type& Ty)

Description

Try to convert \p V to type \p Ty without introducing new instructions. If this is not possible return `nullptr`. Note: this function basically knows how to cast various constants.

Declared at: llvm/include/llvm/Transforms/IPO/Attributor.h:198

Parameters

llvm::Value& V
llvm::Type& Ty