Lines Matching defs:Scale
22 unsigned operator()(DurationScale Scale) const {
23 return static_cast<unsigned>(Scale);
41 getDurationInverseForScale(DurationScale Scale) {
66 return InverseMap[Scale];
69 /// If `Node` is a call to the inverse of `Scale`, return that inverse's
73 DurationScale Scale, const Expr &Node) {
75 getDurationInverseForScale(Scale);
88 /// If `Node` is a call to the inverse of `Scale`, return that inverse's
92 DurationScale Scale, const Expr &Node) {
93 llvm::StringRef InverseFunction = getTimeInverseForScale(Scale);
104 /// Returns the factory function name for a given `Scale`.
105 llvm::StringRef getDurationFactoryForScale(DurationScale Scale) {
106 switch (Scale) {
123 llvm::StringRef getTimeFactoryForScale(DurationScale Scale) {
124 switch (Scale) {
141 /// Returns the Time factory function name for a given `Scale`.
142 llvm::StringRef getTimeInverseForScale(DurationScale Scale) {
143 switch (Scale) {
271 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
277 rewriteInverseDurationCall(Result, Scale, RootNode))
283 return (llvm::Twine(getDurationFactoryForScale(Scale)) + "(" +
289 const ast_matchers::MatchFinder::MatchResult &Result, DurationScale Scale,
295 rewriteInverseTimeCall(Result, Scale, RootNode))
301 return (llvm::Twine(getTimeFactoryForScale(Scale)) + "(" +