<div dir="ltr">Hi everyone,<div><br></div><div>I've been using the TTI function getInstructionCost for code-size by using the TargetCostKind::TCK_CodeSize option.</div><div>However, sometimes I want to estimate the code-size cost of an instruction before actually inserting it into a parent basic block.</div><div>For that, I would like to use the alternative functions, such as getOperationCost, getCallCost, etc., but these functions do not accept a TargetCostKind parameter.</div><div><br></div><div>Is there a way to use the existing TTI infrastructure to query these other functions using the TargetCostKind?</div><div><br></div><div>Thanks,</div><div><br></div><div>Rodrigo Rocha</div></div>