Lines Matching defs:pathRef
168 StringRef pathRef = getToolkitPath();
169 if (!pathRef.empty()) {
171 path.insert(path.begin(), pathRef.begin(), pathRef.end());
172 pathRef = StringRef(path.data(), path.size());
173 if (!llvm::sys::fs::is_directory(pathRef)) {
174 getOperation().emitError() << "CUDA path: " << pathRef
179 pathRef = StringRef(path.data(), path.size());
180 if (!llvm::sys::fs::is_regular_file(pathRef)) {
181 getOperation().emitError() << "LibDevice path: " << pathRef
185 librariesToLink.push_back(StringAttr::get(target.getContext(), pathRef));
265 StringRef pathRef = targetOptions.getToolkitPath();
267 if (!pathRef.empty()) {
268 path.insert(path.begin(), pathRef.begin(), pathRef.end());
280 pathRef = getCUDAToolkitPath();
282 if (!pathRef.empty()) {
283 path.insert(path.begin(), pathRef.begin(), pathRef.end());