DxilConstantFoldingExt.cpp 1.1 KB

1234567891011121314151617181920212223242526272829
  1. //===-- DxilConstantFoldingExt.cpp - Hooks for extensions ----------------===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. // Copyright (C) Microsoft Corporation. All rights reserved.
  9. //
  10. //===----------------------------------------------------------------------===//
  11. //
  12. // These are placeholder hooks to support constant folding of extensions.
  13. // They are defined in a separate file to make it easy to merge changes or link
  14. // in your own version. There should be no upstream changes to these definitions.
  15. //
  16. //===----------------------------------------------------------------------===//
  17. #include "llvm/Analysis/DxilConstantFolding.h"
  18. #include "llvm/IR/Constant.h"
  19. #include "llvm/ADT/StringRef.h"
  20. #include "llvm/ADT/ArrayRef.h"
  21. using namespace llvm;
  22. Constant *hlsl::ConstantFoldScalarCallExt(StringRef Name, Type *Ty, ArrayRef<Constant *> RawOperands) {
  23. return nullptr;
  24. }
  25. bool hlsl::CanConstantFoldCallToExt(const Function *F) {
  26. return false;
  27. }